@roarkanalytics/sdk-mcp 5.16.0 → 5.19.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/CHANGELOG.md +21 -0
- package/client-headers.d.mts +2 -2
- package/client-headers.d.ts +2 -2
- package/client-headers.js +1 -1
- package/client-headers.mjs +1 -1
- package/code-tool-worker.d.mts.map +1 -1
- package/code-tool-worker.d.ts.map +1 -1
- package/code-tool-worker.js +8 -0
- package/code-tool-worker.js.map +1 -1
- package/code-tool-worker.mjs +8 -0
- package/code-tool-worker.mjs.map +1 -1
- package/directory-output-schemas.d.mts +139 -0
- package/directory-output-schemas.d.mts.map +1 -0
- package/directory-output-schemas.d.ts +139 -0
- package/directory-output-schemas.d.ts.map +1 -0
- package/directory-output-schemas.js +251 -0
- package/directory-output-schemas.js.map +1 -0
- package/directory-output-schemas.mjs +248 -0
- package/directory-output-schemas.mjs.map +1 -0
- package/directory-tools.d.mts +2 -0
- package/directory-tools.d.mts.map +1 -1
- package/directory-tools.d.ts +2 -0
- package/directory-tools.d.ts.map +1 -1
- package/directory-tools.js +282 -109
- package/directory-tools.js.map +1 -1
- package/directory-tools.mjs +281 -108
- package/directory-tools.mjs.map +1 -1
- package/docs-search-tool.d.mts +10 -3
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +10 -3
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +36 -6
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +34 -5
- package/docs-search-tool.mjs.map +1 -1
- package/http.d.mts.map +1 -1
- package/http.d.ts.map +1 -1
- package/http.js +8 -7
- package/http.js.map +1 -1
- package/http.mjs +9 -8
- package/http.mjs.map +1 -1
- package/local-docs-search.d.mts.map +1 -1
- package/local-docs-search.d.ts.map +1 -1
- package/local-docs-search.js +220 -8
- package/local-docs-search.js.map +1 -1
- package/local-docs-search.mjs +220 -8
- package/local-docs-search.mjs.map +1 -1
- package/methods.d.mts.map +1 -1
- package/methods.d.ts.map +1 -1
- package/methods.js +48 -0
- package/methods.js.map +1 -1
- package/methods.mjs +48 -0
- package/methods.mjs.map +1 -1
- package/oauth.d.mts +16 -1
- package/oauth.d.mts.map +1 -1
- package/oauth.d.ts +16 -1
- package/oauth.d.ts.map +1 -1
- package/oauth.js +24 -1
- package/oauth.js.map +1 -1
- package/oauth.mjs +22 -0
- package/oauth.mjs.map +1 -1
- package/options.d.mts +10 -0
- package/options.d.mts.map +1 -1
- package/options.d.ts +10 -0
- package/options.d.ts.map +1 -1
- package/options.js +29 -3
- package/options.js.map +1 -1
- package/options.mjs +27 -3
- package/options.mjs.map +1 -1
- package/package.json +12 -2
- package/server.d.mts.map +1 -1
- package/server.d.ts.map +1 -1
- package/server.js +8 -1
- package/server.js.map +1 -1
- package/server.mjs +8 -1
- package/server.mjs.map +1 -1
- package/src/client-headers.ts +1 -1
- package/src/code-tool-worker.ts +8 -0
- package/src/directory-output-schemas.ts +318 -0
- package/src/directory-tools.ts +322 -93
- package/src/docs-search-tool.ts +42 -6
- package/src/http.ts +9 -7
- package/src/local-docs-search.ts +261 -8
- package/src/methods.ts +48 -0
- package/src/oauth.ts +28 -1
- package/src/options.ts +30 -3
- package/src/server.ts +9 -1
- package/src/types.ts +1 -0
- package/types.d.mts +1 -0
- package/types.d.mts.map +1 -1
- package/types.d.ts +1 -0
- package/types.d.ts.map +1 -1
- package/types.js.map +1 -1
- package/types.mjs.map +1 -1
package/http.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.mjs","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAGtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAEnG,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,QAAQ,MAAM,WAAW,CAA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AC,EAAE,CAAC;CAC/C,CAAC;
|
|
1
|
+
{"version":3,"file":"local-docs-search.d.mts","sourceRoot":"","sources":["src/local-docs-search.ts"],"names":[],"mappings":"AA+CA,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;CAC/C,CAAC;AA+nMF;;;;GAIG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,WAAW,CAAiC;IACpD,OAAO,CAAC,UAAU,CAAiC;IAEnD,OAAO;WAKM,MAAM,CAAC,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,eAAe,CAAC;IAY1E,MAAM,CAAC,KAAK,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,YAAY;IA2EhB,OAAO,CAAC,YAAY;YAiBN,iBAAiB;IA4C/B,OAAO,CAAC,UAAU;CAgBnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-docs-search.d.ts","sourceRoot":"","sources":["src/local-docs-search.ts"],"names":[],"mappings":"AA+CA,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;CAC/C,CAAC;
|
|
1
|
+
{"version":3,"file":"local-docs-search.d.ts","sourceRoot":"","sources":["src/local-docs-search.ts"],"names":[],"mappings":"AA+CA,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;CAC/C,CAAC;AA+nMF;;;;GAIG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,WAAW,CAAiC;IACpD,OAAO,CAAC,UAAU,CAAiC;IAEnD,OAAO;WAKM,MAAM,CAAC,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,eAAe,CAAC;IAY1E,MAAM,CAAC,KAAK,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,YAAY;IA2EhB,OAAO,CAAC,YAAY;YAiBN,iBAAiB;IA4C/B,OAAO,CAAC,UAAU;CAgBnB"}
|
package/local-docs-search.js
CHANGED
|
@@ -244,8 +244,8 @@ const EMBEDDED_METHODS = [
|
|
|
244
244
|
"sortDirection?: 'asc' | 'desc';",
|
|
245
245
|
"status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED';",
|
|
246
246
|
],
|
|
247
|
-
response: "{ data: { id: string; callDirection: 'INBOUND' | 'OUTBOUND'; projectId: string; recordingUrlAccess: 'AVAILABLE' | 'NOT_AVAILABLE' | 'RESTRICTED'; startedAt: string; agents?: { id: string; agentVersionId?: string; endpoint?: object; }[]; createdAt?: string; customers?: { label?: string; phoneNumberE164?: string; }[]; durationMs?: number; endedAt?: string; endedStatus?: string; externalId?: string; policyIds?: string[]; properties?: object; recordingUrl?: string; simulationJobId?: string; status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; summary?: string; supersededByCallId?: string; title?: string; updatedAt?: string; }[]; pagination: { hasMore: boolean; nextCursor: string; total: number; }; }",
|
|
248
|
-
markdown: "## list\n\n`client.call.list(after?: string, agentId?: string, countedInResults?: 'true' | 'false', excludeHiddenRuns?: 'true' | 'false', limit?: number, properties?: object, searchText?: string, simulationRunPlanIds?: string, simulationRunPlanJobId?: string, simulationRunPlanJobIds?: string, sortBy?: 'createdAt' | 'startedAt' | 'endedAt' | 'duration' | 'title' | 'status', sortDirection?: 'asc' | 'desc', status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'): { data: object[]; pagination: object; }`\n\n**get** `/v1/call`\n\nReturns a paginated list of calls for the authenticated project. Pass agentId to keep calls for specific agents, or properties[agent_name][eq] when you only have the agent name. sortBy and sortDirection apply together with those filters.\n\n### Parameters\n\n- `after?: string`\n Cursor for pagination - use the nextCursor value from a previous response\n\n- `agentId?: string`\n Calls that include any of these agents. One id, or several separated by commas, at most 100. A call with more than one agent matches when any of them is listed. An id that is not an agent on a call in this project matches nothing. Combines with the other filters, including sortBy and sortDirection.\n\n- `countedInResults?: 'true' | 'false'`\n true: only simulated calls their run's results count (not invalidated, for example because the agent never spoke). false: only the simulated calls the results leave out, each invalidated. Live calls, and calls removed from their run, match neither.\n\n- `excludeHiddenRuns?: 'true' | 'false'`\n true: leave out calls from runs hidden from the runs list. Live calls stay in. false is the same as leaving it out.\n\n- `limit?: number`\n Maximum number of calls to return (default: 20, max: 100)\n\n- `properties?: object`\n Filter on properties, one entry per property name. properties[<name>][exists]=true keeps calls that have the property set (whatever the value), properties[<name>][exists]=false keeps calls missing it (never sent, sent as null, or removed). properties[<name>][eq]=<value> keeps calls whose value equals it, ignoring case. agent_name and agent_id are built in and read the agents linked to the call, not a stored snapshot: agent_name matches an agent name, agent_id matches an agent id (a UUID). A call with several agents matches when any of them does. A custom property the project has never stored matches no calls under eq. Names match the way properties are stored, so planTier and plan_tier are one property, and agentName is agent_name. At most 20 properties. A name taken by a built-in call filter, such as status, is rejected with 400. One operator per property.\n\n- `searchText?: string`\n Search text to filter calls by title, summary, or transcript\n\n- `simulationRunPlanIds?: string`\n Calls from every run of any of these run plans, comma-separated, at most 100\n\n- `simulationRunPlanJobId?: string`\n Filter by simulation run plan job ID to get all calls from a specific simulation batch\n\n- `simulationRunPlanJobIds?: string`\n Calls from any of these simulation runs (run plan job ids), comma-separated, at most 100\n\n- `sortBy?: 'createdAt' | 'startedAt' | 'endedAt' | 'duration' | 'title' | 'status'`\n Field to sort by (default: createdAt)\n\n- `sortDirection?: 'asc' | 'desc'`\n Sort direction (default: desc)\n\n- `status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'`\n Filter by call status\n\n### Returns\n\n- `{ data: { id: string; callDirection: 'INBOUND' | 'OUTBOUND'; projectId: string; recordingUrlAccess: 'AVAILABLE' | 'NOT_AVAILABLE' | 'RESTRICTED'; startedAt: string; agents?: { id: string; agentVersionId?: string; endpoint?: object; }[]; createdAt?: string; customers?: { label?: string; phoneNumberE164?: string; }[]; durationMs?: number; endedAt?: string; endedStatus?: string; externalId?: string; policyIds?: string[]; properties?: object; recordingUrl?: string; simulationJobId?: string; status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; summary?: string; supersededByCallId?: string; title?: string; updatedAt?: string; }[]; pagination: { hasMore: boolean; nextCursor: string; total: number; }; }`\n\n - `data: { id: string; callDirection: 'INBOUND' | 'OUTBOUND'; projectId: string; recordingUrlAccess: 'AVAILABLE' | 'NOT_AVAILABLE' | 'RESTRICTED'; startedAt: string; agents?: { id: string; agentVersionId?: string; endpoint?: { id: string; environment: string; phoneNumberE164?: string; }; }[]; createdAt?: string; customers?: { label?: string; phoneNumberE164?: string; }[]; durationMs?: number; endedAt?: string; endedStatus?: string; externalId?: string; policyIds?: string[]; properties?: object; recordingUrl?: string; simulationJobId?: string; status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; summary?: string; supersededByCallId?: string; title?: string; updatedAt?: string; }[]`\n - `pagination: { hasMore: boolean; nextCursor: string; total: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst calls = await client.call.list();\n\nconsole.log(calls);\n```",
|
|
247
|
+
response: "{ data: { id: string; callDirection: 'INBOUND' | 'OUTBOUND'; projectId: string; recordingUrlAccess: 'AVAILABLE' | 'NOT_AVAILABLE' | 'RESTRICTED'; startedAt: string; agents?: { id: string; agentVersionId?: string; endpoint?: object; }[]; createdAt?: string; customers?: { customerProfileId?: string; label?: string; phoneNumberE164?: string; }[]; durationMs?: number; endedAt?: string; endedStatus?: string; externalId?: string; policyIds?: string[]; properties?: object; recordingUrl?: string; simulationJobId?: string; status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; summary?: string; supersededByCallId?: string; title?: string; updatedAt?: string; }[]; pagination: { hasMore: boolean; nextCursor: string; total: number; }; }",
|
|
248
|
+
markdown: "## list\n\n`client.call.list(after?: string, agentId?: string, countedInResults?: 'true' | 'false', excludeHiddenRuns?: 'true' | 'false', limit?: number, properties?: object, searchText?: string, simulationRunPlanIds?: string, simulationRunPlanJobId?: string, simulationRunPlanJobIds?: string, sortBy?: 'createdAt' | 'startedAt' | 'endedAt' | 'duration' | 'title' | 'status', sortDirection?: 'asc' | 'desc', status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'): { data: object[]; pagination: object; }`\n\n**get** `/v1/call`\n\nReturns a paginated list of calls for the authenticated project. Pass agentId to keep calls for specific agents, or properties[agent_name][eq] when you only have the agent name. sortBy and sortDirection apply together with those filters.\n\n### Parameters\n\n- `after?: string`\n Cursor for pagination - use the nextCursor value from a previous response\n\n- `agentId?: string`\n Calls that include any of these agents. One id, or several separated by commas, at most 100. A call with more than one agent matches when any of them is listed. An id that is not an agent on a call in this project matches nothing. Combines with the other filters, including sortBy and sortDirection.\n\n- `countedInResults?: 'true' | 'false'`\n true: only simulated calls their run's results count (not invalidated, for example because the agent never spoke). false: only the simulated calls the results leave out, each invalidated. Live calls, and calls removed from their run, match neither.\n\n- `excludeHiddenRuns?: 'true' | 'false'`\n true: leave out calls from runs hidden from the runs list. Live calls stay in. false is the same as leaving it out.\n\n- `limit?: number`\n Maximum number of calls to return (default: 20, max: 100)\n\n- `properties?: object`\n Filter on properties, one entry per property name. properties[<name>][exists]=true keeps calls that have the property set (whatever the value), properties[<name>][exists]=false keeps calls missing it (never sent, sent as null, or removed). properties[<name>][eq]=<value> keeps calls whose value equals it, ignoring case. agent_name and agent_id are built in and read the agents linked to the call, not a stored snapshot: agent_name matches an agent name, agent_id matches an agent id (a UUID). A call with several agents matches when any of them does. A custom property the project has never stored matches no calls under eq. Names match the way properties are stored, so planTier and plan_tier are one property, and agentName is agent_name. At most 20 properties. A name taken by a built-in call filter, such as status, is rejected with 400. One operator per property.\n\n- `searchText?: string`\n Search text to filter calls by title, summary, or transcript\n\n- `simulationRunPlanIds?: string`\n Calls from every run of any of these run plans, comma-separated, at most 100\n\n- `simulationRunPlanJobId?: string`\n Filter by simulation run plan job ID to get all calls from a specific simulation batch\n\n- `simulationRunPlanJobIds?: string`\n Calls from any of these simulation runs (run plan job ids), comma-separated, at most 100\n\n- `sortBy?: 'createdAt' | 'startedAt' | 'endedAt' | 'duration' | 'title' | 'status'`\n Field to sort by (default: createdAt)\n\n- `sortDirection?: 'asc' | 'desc'`\n Sort direction (default: desc)\n\n- `status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'`\n Filter by call status\n\n### Returns\n\n- `{ data: { id: string; callDirection: 'INBOUND' | 'OUTBOUND'; projectId: string; recordingUrlAccess: 'AVAILABLE' | 'NOT_AVAILABLE' | 'RESTRICTED'; startedAt: string; agents?: { id: string; agentVersionId?: string; endpoint?: object; }[]; createdAt?: string; customers?: { customerProfileId?: string; label?: string; phoneNumberE164?: string; }[]; durationMs?: number; endedAt?: string; endedStatus?: string; externalId?: string; policyIds?: string[]; properties?: object; recordingUrl?: string; simulationJobId?: string; status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; summary?: string; supersededByCallId?: string; title?: string; updatedAt?: string; }[]; pagination: { hasMore: boolean; nextCursor: string; total: number; }; }`\n\n - `data: { id: string; callDirection: 'INBOUND' | 'OUTBOUND'; projectId: string; recordingUrlAccess: 'AVAILABLE' | 'NOT_AVAILABLE' | 'RESTRICTED'; startedAt: string; agents?: { id: string; agentVersionId?: string; endpoint?: { id: string; environment: string; phoneNumberE164?: string; }; }[]; createdAt?: string; customers?: { customerProfileId?: string; label?: string; phoneNumberE164?: string; }[]; durationMs?: number; endedAt?: string; endedStatus?: string; externalId?: string; policyIds?: string[]; properties?: object; recordingUrl?: string; simulationJobId?: string; status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; summary?: string; supersededByCallId?: string; title?: string; updatedAt?: string; }[]`\n - `pagination: { hasMore: boolean; nextCursor: string; total: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst calls = await client.call.list();\n\nconsole.log(calls);\n```",
|
|
249
249
|
perLanguage: {
|
|
250
250
|
typescript: {
|
|
251
251
|
method: 'client.call.list',
|
|
@@ -275,8 +275,8 @@ const EMBEDDED_METHODS = [
|
|
|
275
275
|
'startedAt: string;',
|
|
276
276
|
'agent?: { roarkId: string; endpoint?: { id: string; } | { type: string; value: string; direction?: string; }; prompt?: { resolvedPrompt: string; }; };',
|
|
277
277
|
'agents?: { roarkId: string; endpoint?: { id: string; } | { type: string; value: string; direction?: string; }; prompt?: { resolvedPrompt: string; }; }[];',
|
|
278
|
-
'customer?: { phoneNumberE164: string; label?: string; };',
|
|
279
|
-
'customers?: { phoneNumberE164: string; label?: string; }[];',
|
|
278
|
+
'customer?: { phoneNumberE164: string; externalId?: string; label?: string; };',
|
|
279
|
+
'customers?: { phoneNumberE164: string; externalId?: string; label?: string; }[];',
|
|
280
280
|
'endedStatus?: string;',
|
|
281
281
|
'externalId?: string;',
|
|
282
282
|
'livekitRoomId?: string;',
|
|
@@ -286,8 +286,8 @@ const EMBEDDED_METHODS = [
|
|
|
286
286
|
"transcript?: { endOffsetMs: number; role: 'AGENT'; startOffsetMs: number; text: string; agent?: { customId?: string; roarkId?: string; }; languageCode?: string; payload?: object; } | { endOffsetMs: number; role: 'CUSTOMER'; startOffsetMs: number; text: string; customer?: { label?: string; phoneNumberE164?: string; }; languageCode?: string; payload?: object; }[];",
|
|
287
287
|
'vapiCallId?: string;',
|
|
288
288
|
],
|
|
289
|
-
response: "{ data: { id: string; agents: { id: string; agentVersionId?: string; endpoint?: object; }[]; callDirection: 'INBOUND' | 'OUTBOUND'; createdAt: string; customers: { label?: string; phoneNumberE164?: string; }[]; externalId: string; projectId: string; startedAt: string; status: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; }; }",
|
|
290
|
-
markdown: "## create\n\n`client.call.create(callDirection: 'INBOUND' | 'OUTBOUND', interfaceType: 'PHONE' | 'WEB', recordingUrl: string, startedAt: string, agent?: { roarkId: string; endpoint?: { id: string; } | { type: string; value: string; direction?: string; }; prompt?: { resolvedPrompt: string; }; }, agents?: { roarkId: string; endpoint?: { id: string; } | { type: string; value: string; direction?: string; }; prompt?: { resolvedPrompt: string; }; }[], customer?: { phoneNumberE164: string; label?: string; }, customers?: { phoneNumberE164: string; label?: string; }[], endedStatus?: string, externalId?: string, livekitRoomId?: string, properties?: object, stereoRecordingUrl?: string, toolInvocations?: { name: string; parameters: object; result: string | object; startOffsetMs: number; agent?: { customId?: string; roarkId?: string; }; description?: string; endOffsetMs?: number; }[], transcript?: { endOffsetMs: number; role: 'AGENT'; startOffsetMs: number; text: string; agent?: { customId?: string; roarkId?: string; }; languageCode?: string; payload?: object; } | { endOffsetMs: number; role: 'CUSTOMER'; startOffsetMs: number; text: string; customer?: { label?: string; phoneNumberE164?: string; }; languageCode?: string; payload?: object; }[], vapiCallId?: string): { data: object; }`\n\n**post** `/v1/call`\n\nCreate a new call with recording, transcript, agents, and customers\n\n### Parameters\n\n- `callDirection: 'INBOUND' | 'OUTBOUND'`\n Direction of the call (INBOUND or OUTBOUND)\n\n- `interfaceType: 'PHONE' | 'WEB'`\n Interface type of the call (PHONE or WEB)\n\n- `recordingUrl: string`\n URL of source recording (must be an accessible WAV, MP3, MP4, or OGG file). Can be a signed URL.\n\n- `startedAt: string`\n When the call started (ISO 8601 format)\n\n- `agent?: { roarkId: string; endpoint?: { id: string; } | { type: string; value: string; direction?: string; }; prompt?: { resolvedPrompt: string; }; }`\n Single agent participating in the call. Use this for simpler API when you have only one agent.\n\n- `agents?: { roarkId: string; endpoint?: { id: string; } | { type: string; value: string; direction?: string; }; prompt?: { resolvedPrompt: string; }; }[]`\n Agents participating in the call. Each agent requires identification and prompt information.\n\n- `customer?: { phoneNumberE164: string; label?: string; }`\n Single customer participating in the call. Use this for simpler API when you have only one customer.\n\n- `customers?: { phoneNumberE164: string; label?: string; }[]`\n Customers participating in the call.\n\n- `endedStatus?: string`\n High-level call end status, indicating how the call terminated\n\n- `externalId?: string`\n A stable identifier from your own system (e.g. session ID, conversation ID) used to correlate this call with OpenTelemetry traces. Set the same value as a `roark.external_id` span or resource attribute on your traces and the matching trace will be linked automatically. Must be unique within a project.\n\n- `livekitRoomId?: string`\n The LiveKit Cloud room ID to link this call with OpenTelemetry trace data from LiveKit. Used for matching calls with OTEL traces.\n\n- `properties?: object`\n Custom properties to include with the call. These can be used for filtering and will show in the call details page\n\n- `stereoRecordingUrl?: string`\n URL of source stereo recording. Must be accessible. Can be a signed URL. Supported formats: WAV, MP3, MP4, OGG.\n\n- `toolInvocations?: { name: string; parameters: object; result: string | object; startOffsetMs: number; agent?: { customId?: string; roarkId?: string; }; description?: string; endOffsetMs?: number; }[]`\n List of tool invocations made during the call\n\n- `transcript?: { endOffsetMs: number; role: 'AGENT'; startOffsetMs: number; text: string; agent?: { customId?: string; roarkId?: string; }; languageCode?: string; payload?: object; } | { endOffsetMs: number; role: 'CUSTOMER'; startOffsetMs: number; text: string; customer?: { label?: string; phoneNumberE164?: string; }; languageCode?: string; payload?: object; }[]`\n List of transcript entries made during the call\n\n- `vapiCallId?: string`\n The Vapi call ID (UUID) to link this call with OpenTelemetry trace data from Vapi. Used for matching calls with OTEL traces.\n\n### Returns\n\n- `{ data: { id: string; agents: { id: string; agentVersionId?: string; endpoint?: object; }[]; callDirection: 'INBOUND' | 'OUTBOUND'; createdAt: string; customers: { label?: string; phoneNumberE164?: string; }[]; externalId: string; projectId: string; startedAt: string; status: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; }; }`\n\n - `data: { id: string; agents: { id: string; agentVersionId?: string; endpoint?: { id: string; environment: string; phoneNumberE164?: string; }; }[]; callDirection: 'INBOUND' | 'OUTBOUND'; createdAt: string; customers: { label?: string; phoneNumberE164?: string; }[]; externalId: string; projectId: string; startedAt: string; status: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst call = await client.call.create({\n callDirection: 'INBOUND',\n interfaceType: 'PHONE',\n recordingUrl: 'https://example.com',\n startedAt: 'startedAt',\n});\n\nconsole.log(call);\n```",
|
|
289
|
+
response: "{ data: { id: string; agents: { id: string; agentVersionId?: string; endpoint?: object; }[]; callDirection: 'INBOUND' | 'OUTBOUND'; createdAt: string; customers: { customerProfileId?: string; label?: string; phoneNumberE164?: string; }[]; externalId: string; projectId: string; startedAt: string; status: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; }; }",
|
|
290
|
+
markdown: "## create\n\n`client.call.create(callDirection: 'INBOUND' | 'OUTBOUND', interfaceType: 'PHONE' | 'WEB', recordingUrl: string, startedAt: string, agent?: { roarkId: string; endpoint?: { id: string; } | { type: string; value: string; direction?: string; }; prompt?: { resolvedPrompt: string; }; }, agents?: { roarkId: string; endpoint?: { id: string; } | { type: string; value: string; direction?: string; }; prompt?: { resolvedPrompt: string; }; }[], customer?: { phoneNumberE164: string; externalId?: string; label?: string; }, customers?: { phoneNumberE164: string; externalId?: string; label?: string; }[], endedStatus?: string, externalId?: string, livekitRoomId?: string, properties?: object, stereoRecordingUrl?: string, toolInvocations?: { name: string; parameters: object; result: string | object; startOffsetMs: number; agent?: { customId?: string; roarkId?: string; }; description?: string; endOffsetMs?: number; }[], transcript?: { endOffsetMs: number; role: 'AGENT'; startOffsetMs: number; text: string; agent?: { customId?: string; roarkId?: string; }; languageCode?: string; payload?: object; } | { endOffsetMs: number; role: 'CUSTOMER'; startOffsetMs: number; text: string; customer?: { label?: string; phoneNumberE164?: string; }; languageCode?: string; payload?: object; }[], vapiCallId?: string): { data: object; }`\n\n**post** `/v1/call`\n\nCreate a new call with recording, transcript, agents, and customers\n\n### Parameters\n\n- `callDirection: 'INBOUND' | 'OUTBOUND'`\n Direction of the call (INBOUND or OUTBOUND)\n\n- `interfaceType: 'PHONE' | 'WEB'`\n Interface type of the call (PHONE or WEB)\n\n- `recordingUrl: string`\n URL of source recording (must be an accessible WAV, MP3, MP4, or OGG file). Can be a signed URL.\n\n- `startedAt: string`\n When the call started (ISO 8601 format)\n\n- `agent?: { roarkId: string; endpoint?: { id: string; } | { type: string; value: string; direction?: string; }; prompt?: { resolvedPrompt: string; }; }`\n Single agent participating in the call. Use this for simpler API when you have only one agent.\n\n- `agents?: { roarkId: string; endpoint?: { id: string; } | { type: string; value: string; direction?: string; }; prompt?: { resolvedPrompt: string; }; }[]`\n Agents participating in the call. Each agent requires identification and prompt information.\n\n- `customer?: { phoneNumberE164: string; externalId?: string; label?: string; }`\n Single customer participating in the call. Use this for simpler API when you have only one customer.\n\n- `customers?: { phoneNumberE164: string; externalId?: string; label?: string; }[]`\n Customers participating in the call.\n\n- `endedStatus?: string`\n High-level call end status, indicating how the call terminated\n\n- `externalId?: string`\n A stable identifier from your own system (e.g. session ID, conversation ID) used to correlate this call with OpenTelemetry traces. Set the same value as a `roark.external_id` span or resource attribute on your traces and the matching trace will be linked automatically. Must be unique within a project.\n\n- `livekitRoomId?: string`\n The LiveKit Cloud room ID to link this call with OpenTelemetry trace data from LiveKit. Used for matching calls with OTEL traces.\n\n- `properties?: object`\n Custom properties to include with the call. These can be used for filtering and will show in the call details page\n\n- `stereoRecordingUrl?: string`\n URL of source stereo recording. Must be accessible. Can be a signed URL. Supported formats: WAV, MP3, MP4, OGG.\n\n- `toolInvocations?: { name: string; parameters: object; result: string | object; startOffsetMs: number; agent?: { customId?: string; roarkId?: string; }; description?: string; endOffsetMs?: number; }[]`\n List of tool invocations made during the call\n\n- `transcript?: { endOffsetMs: number; role: 'AGENT'; startOffsetMs: number; text: string; agent?: { customId?: string; roarkId?: string; }; languageCode?: string; payload?: object; } | { endOffsetMs: number; role: 'CUSTOMER'; startOffsetMs: number; text: string; customer?: { label?: string; phoneNumberE164?: string; }; languageCode?: string; payload?: object; }[]`\n List of transcript entries made during the call\n\n- `vapiCallId?: string`\n The Vapi call ID (UUID) to link this call with OpenTelemetry trace data from Vapi. Used for matching calls with OTEL traces.\n\n### Returns\n\n- `{ data: { id: string; agents: { id: string; agentVersionId?: string; endpoint?: object; }[]; callDirection: 'INBOUND' | 'OUTBOUND'; createdAt: string; customers: { customerProfileId?: string; label?: string; phoneNumberE164?: string; }[]; externalId: string; projectId: string; startedAt: string; status: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; }; }`\n\n - `data: { id: string; agents: { id: string; agentVersionId?: string; endpoint?: { id: string; environment: string; phoneNumberE164?: string; }; }[]; callDirection: 'INBOUND' | 'OUTBOUND'; createdAt: string; customers: { customerProfileId?: string; label?: string; phoneNumberE164?: string; }[]; externalId: string; projectId: string; startedAt: string; status: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst call = await client.call.create({\n callDirection: 'INBOUND',\n interfaceType: 'PHONE',\n recordingUrl: 'https://example.com',\n startedAt: 'startedAt',\n});\n\nconsole.log(call);\n```",
|
|
291
291
|
perLanguage: {
|
|
292
292
|
typescript: {
|
|
293
293
|
method: 'client.call.create',
|
|
@@ -311,8 +311,8 @@ const EMBEDDED_METHODS = [
|
|
|
311
311
|
stainlessPath: '(resource) call > (method) getById',
|
|
312
312
|
qualified: 'client.call.getByID',
|
|
313
313
|
params: ['callId: string;'],
|
|
314
|
-
response: "{ data: { id: string; callDirection: 'INBOUND' | 'OUTBOUND'; projectId: string; recordingUrlAccess: 'AVAILABLE' | 'NOT_AVAILABLE' | 'RESTRICTED'; startedAt: string; agents?: { id: string; agentVersionId?: string; endpoint?: object; }[]; createdAt?: string; customers?: { label?: string; phoneNumberE164?: string; }[]; durationMs?: number; endedAt?: string; endedStatus?: string; externalId?: string; policyIds?: string[]; properties?: object; recordingUrl?: string; simulationJobId?: string; status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; summary?: string; supersededByCallId?: string; title?: string; updatedAt?: string; }; }",
|
|
315
|
-
markdown: "## getById\n\n`client.call.getByID(callId: string): { data: object; }`\n\n**get** `/v1/call/{callId}`\n\nRetrieve an existing call by its unique identifier\n\n### Parameters\n\n- `callId: string`\n\n### Returns\n\n- `{ data: { id: string; callDirection: 'INBOUND' | 'OUTBOUND'; projectId: string; recordingUrlAccess: 'AVAILABLE' | 'NOT_AVAILABLE' | 'RESTRICTED'; startedAt: string; agents?: { id: string; agentVersionId?: string; endpoint?: object; }[]; createdAt?: string; customers?: { label?: string; phoneNumberE164?: string; }[]; durationMs?: number; endedAt?: string; endedStatus?: string; externalId?: string; policyIds?: string[]; properties?: object; recordingUrl?: string; simulationJobId?: string; status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; summary?: string; supersededByCallId?: string; title?: string; updatedAt?: string; }; }`\n\n - `data: { id: string; callDirection: 'INBOUND' | 'OUTBOUND'; projectId: string; recordingUrlAccess: 'AVAILABLE' | 'NOT_AVAILABLE' | 'RESTRICTED'; startedAt: string; agents?: { id: string; agentVersionId?: string; endpoint?: { id: string; environment: string; phoneNumberE164?: string; }; }[]; createdAt?: string; customers?: { label?: string; phoneNumberE164?: string; }[]; durationMs?: number; endedAt?: string; endedStatus?: string; externalId?: string; policyIds?: string[]; properties?: object; recordingUrl?: string; simulationJobId?: string; status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; summary?: string; supersededByCallId?: string; title?: string; updatedAt?: string; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.call.getByID('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');\n\nconsole.log(response);\n```",
|
|
314
|
+
response: "{ data: { id: string; callDirection: 'INBOUND' | 'OUTBOUND'; projectId: string; recordingUrlAccess: 'AVAILABLE' | 'NOT_AVAILABLE' | 'RESTRICTED'; startedAt: string; agents?: { id: string; agentVersionId?: string; endpoint?: object; }[]; createdAt?: string; customers?: { customerProfileId?: string; label?: string; phoneNumberE164?: string; }[]; durationMs?: number; endedAt?: string; endedStatus?: string; externalId?: string; policyIds?: string[]; properties?: object; recordingUrl?: string; simulationJobId?: string; status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; summary?: string; supersededByCallId?: string; title?: string; updatedAt?: string; }; }",
|
|
315
|
+
markdown: "## getById\n\n`client.call.getByID(callId: string): { data: object; }`\n\n**get** `/v1/call/{callId}`\n\nRetrieve an existing call by its unique identifier\n\n### Parameters\n\n- `callId: string`\n\n### Returns\n\n- `{ data: { id: string; callDirection: 'INBOUND' | 'OUTBOUND'; projectId: string; recordingUrlAccess: 'AVAILABLE' | 'NOT_AVAILABLE' | 'RESTRICTED'; startedAt: string; agents?: { id: string; agentVersionId?: string; endpoint?: object; }[]; createdAt?: string; customers?: { customerProfileId?: string; label?: string; phoneNumberE164?: string; }[]; durationMs?: number; endedAt?: string; endedStatus?: string; externalId?: string; policyIds?: string[]; properties?: object; recordingUrl?: string; simulationJobId?: string; status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; summary?: string; supersededByCallId?: string; title?: string; updatedAt?: string; }; }`\n\n - `data: { id: string; callDirection: 'INBOUND' | 'OUTBOUND'; projectId: string; recordingUrlAccess: 'AVAILABLE' | 'NOT_AVAILABLE' | 'RESTRICTED'; startedAt: string; agents?: { id: string; agentVersionId?: string; endpoint?: { id: string; environment: string; phoneNumberE164?: string; }; }[]; createdAt?: string; customers?: { customerProfileId?: string; label?: string; phoneNumberE164?: string; }[]; durationMs?: number; endedAt?: string; endedStatus?: string; externalId?: string; policyIds?: string[]; properties?: object; recordingUrl?: string; simulationJobId?: string; status?: 'RINGING' | 'IN_PROGRESS' | 'ENDED'; summary?: string; supersededByCallId?: string; title?: string; updatedAt?: string; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.call.getByID('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');\n\nconsole.log(response);\n```",
|
|
316
316
|
perLanguage: {
|
|
317
317
|
typescript: {
|
|
318
318
|
method: 'client.call.getByID',
|
|
@@ -2659,6 +2659,218 @@ const EMBEDDED_METHODS = [
|
|
|
2659
2659
|
},
|
|
2660
2660
|
},
|
|
2661
2661
|
},
|
|
2662
|
+
{
|
|
2663
|
+
name: 'list',
|
|
2664
|
+
endpoint: '/v1/customer-profile',
|
|
2665
|
+
httpMethod: 'get',
|
|
2666
|
+
summary: 'List customer profiles',
|
|
2667
|
+
description: 'Returns the people who have talked to your agents in this project. Customers we hold nothing about beyond their identifier are left out unless includeNoData is true.',
|
|
2668
|
+
stainlessPath: '(resource) customerProfile > (method) list',
|
|
2669
|
+
qualified: 'client.customerProfile.list',
|
|
2670
|
+
params: [
|
|
2671
|
+
'agentId?: string;',
|
|
2672
|
+
'fieldKey?: string;',
|
|
2673
|
+
"fieldOperator?: 'EQUALS' | 'NOT_EQUALS' | 'CONTAINS' | 'STARTS_WITH' | 'IS_SET' | 'IS_NOT_SET';",
|
|
2674
|
+
'fieldValue?: string;',
|
|
2675
|
+
"includeNoData?: 'true' | 'false';",
|
|
2676
|
+
'limit?: number;',
|
|
2677
|
+
"modality?: 'call' | 'chat';",
|
|
2678
|
+
'page?: number;',
|
|
2679
|
+
'search?: string;',
|
|
2680
|
+
'sortBy?: string;',
|
|
2681
|
+
"sortDirection?: 'asc' | 'desc';",
|
|
2682
|
+
],
|
|
2683
|
+
response: '{ data: { items: { id: string; agentIds: string[]; attributes: object[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }[]; page: number; totalCount: number; }; }',
|
|
2684
|
+
markdown: "## list\n\n`client.customerProfile.list(agentId?: string, fieldKey?: string, fieldOperator?: 'EQUALS' | 'NOT_EQUALS' | 'CONTAINS' | 'STARTS_WITH' | 'IS_SET' | 'IS_NOT_SET', fieldValue?: string, includeNoData?: 'true' | 'false', limit?: number, modality?: 'call' | 'chat', page?: number, search?: string, sortBy?: string, sortDirection?: 'asc' | 'desc'): { data: object; }`\n\n**get** `/v1/customer-profile`\n\nReturns the people who have talked to your agents in this project. Customers we hold nothing about beyond their identifier are left out unless includeNoData is true.\n\n### Parameters\n\n- `agentId?: string`\n\n- `fieldKey?: string`\n Filter by this field. Use with fieldOperator and, unless checking presence, fieldValue.\n\n- `fieldOperator?: 'EQUALS' | 'NOT_EQUALS' | 'CONTAINS' | 'STARTS_WITH' | 'IS_SET' | 'IS_NOT_SET'`\n How fieldValue is compared, ignoring case. NOT_EQUALS includes customers without the field.\n\n- `fieldValue?: string`\n\n- `includeNoData?: 'true' | 'false'`\n Include customers we hold nothing about beyond their identifier. Defaults to false.\n\n- `limit?: number`\n\n- `modality?: 'call' | 'chat'`\n\n- `page?: number`\n\n- `search?: string`\n\n- `sortBy?: string`\n A column, or field.<KEY> (for example field.COMPANY) to sort by a field's value. Customers without a value sort last.\n\n- `sortDirection?: 'asc' | 'desc'`\n\n### Returns\n\n- `{ data: { items: { id: string; agentIds: string[]; attributes: object[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }[]; page: number; totalCount: number; }; }`\n\n - `data: { items: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: object; history: object[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }[]; page: number; totalCount: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst customerProfiles = await client.customerProfile.list();\n\nconsole.log(customerProfiles);\n```",
|
|
2685
|
+
perLanguage: {
|
|
2686
|
+
typescript: {
|
|
2687
|
+
method: 'client.customerProfile.list',
|
|
2688
|
+
example: "import Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark({\n bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted\n});\n\nconst customerProfiles = await client.customerProfile.list();\n\nconsole.log(customerProfiles.data);",
|
|
2689
|
+
},
|
|
2690
|
+
python: {
|
|
2691
|
+
method: 'customer_profile.list',
|
|
2692
|
+
example: 'import os\nfrom roark_analytics import Roark\n\nclient = Roark(\n bearer_token=os.environ.get("ROARK_API_BEARER_TOKEN"), # This is the default and can be omitted\n)\ncustomer_profiles = client.customer_profile.list()\nprint(customer_profiles.data)',
|
|
2693
|
+
},
|
|
2694
|
+
http: {
|
|
2695
|
+
example: 'curl https://api.roark.ai/v1/customer-profile \\\n -H "Authorization: Bearer $ROARK_API_BEARER_TOKEN"',
|
|
2696
|
+
},
|
|
2697
|
+
},
|
|
2698
|
+
},
|
|
2699
|
+
{
|
|
2700
|
+
name: 'getById',
|
|
2701
|
+
endpoint: '/v1/customer-profile/{customerProfileId}',
|
|
2702
|
+
httpMethod: 'get',
|
|
2703
|
+
summary: 'Get a customer profile',
|
|
2704
|
+
description: 'Get a customer profile',
|
|
2705
|
+
stainlessPath: '(resource) customerProfile > (method) getById',
|
|
2706
|
+
qualified: 'client.customerProfile.getByID',
|
|
2707
|
+
params: ['customerProfileId: string;'],
|
|
2708
|
+
response: "{ data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: object; history: object[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }; }",
|
|
2709
|
+
markdown: "## getById\n\n`client.customerProfile.getByID(customerProfileId: string): { data: object; }`\n\n**get** `/v1/customer-profile/{customerProfileId}`\n\nGet a customer profile\n\n### Parameters\n\n- `customerProfileId: string`\n\n### Returns\n\n- `{ data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: object; history: object[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }; }`\n\n - `data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: { callId: string; chatId: string; observedAt: string; offsetMs: number; quote: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }; history: { callId: string; chatId: string; observedAt: string; offsetMs: number; quote: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.customerProfile.getByID('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');\n\nconsole.log(response);\n```",
|
|
2710
|
+
perLanguage: {
|
|
2711
|
+
typescript: {
|
|
2712
|
+
method: 'client.customerProfile.getByID',
|
|
2713
|
+
example: "import Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark({\n bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted\n});\n\nconst response = await client.customerProfile.getByID('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');\n\nconsole.log(response.data);",
|
|
2714
|
+
},
|
|
2715
|
+
python: {
|
|
2716
|
+
method: 'customer_profile.get_by_id',
|
|
2717
|
+
example: 'import os\nfrom roark_analytics import Roark\n\nclient = Roark(\n bearer_token=os.environ.get("ROARK_API_BEARER_TOKEN"), # This is the default and can be omitted\n)\nresponse = client.customer_profile.get_by_id(\n "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",\n)\nprint(response.data)',
|
|
2718
|
+
},
|
|
2719
|
+
http: {
|
|
2720
|
+
example: 'curl https://api.roark.ai/v1/customer-profile/$CUSTOMER_PROFILE_ID \\\n -H "Authorization: Bearer $ROARK_API_BEARER_TOKEN"',
|
|
2721
|
+
},
|
|
2722
|
+
},
|
|
2723
|
+
},
|
|
2724
|
+
{
|
|
2725
|
+
name: 'delete',
|
|
2726
|
+
endpoint: '/v1/customer-profile/{customerProfileId}',
|
|
2727
|
+
httpMethod: 'delete',
|
|
2728
|
+
summary: 'Erase a customer profile',
|
|
2729
|
+
description: 'Permanently removes the profile, its fields, evidence and notes. Conversations are kept. A new conversation from the same identifier creates a new profile.',
|
|
2730
|
+
stainlessPath: '(resource) customerProfile > (method) delete',
|
|
2731
|
+
qualified: 'client.customerProfile.delete',
|
|
2732
|
+
params: ['customerProfileId: string;'],
|
|
2733
|
+
response: '{ data: { success: boolean; }; }',
|
|
2734
|
+
markdown: "## delete\n\n`client.customerProfile.delete(customerProfileId: string): { data: object; }`\n\n**delete** `/v1/customer-profile/{customerProfileId}`\n\nPermanently removes the profile, its fields, evidence and notes. Conversations are kept. A new conversation from the same identifier creates a new profile.\n\n### Parameters\n\n- `customerProfileId: string`\n\n### Returns\n\n- `{ data: { success: boolean; }; }`\n\n - `data: { success: boolean; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst customerProfile = await client.customerProfile.delete('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');\n\nconsole.log(customerProfile);\n```",
|
|
2735
|
+
perLanguage: {
|
|
2736
|
+
typescript: {
|
|
2737
|
+
method: 'client.customerProfile.delete',
|
|
2738
|
+
example: "import Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark({\n bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted\n});\n\nconst customerProfile = await client.customerProfile.delete('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');\n\nconsole.log(customerProfile.data);",
|
|
2739
|
+
},
|
|
2740
|
+
python: {
|
|
2741
|
+
method: 'customer_profile.delete',
|
|
2742
|
+
example: 'import os\nfrom roark_analytics import Roark\n\nclient = Roark(\n bearer_token=os.environ.get("ROARK_API_BEARER_TOKEN"), # This is the default and can be omitted\n)\ncustomer_profile = client.customer_profile.delete(\n "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",\n)\nprint(customer_profile.data)',
|
|
2743
|
+
},
|
|
2744
|
+
http: {
|
|
2745
|
+
example: 'curl https://api.roark.ai/v1/customer-profile/$CUSTOMER_PROFILE_ID \\\n -X DELETE \\\n -H "Authorization: Bearer $ROARK_API_BEARER_TOKEN"',
|
|
2746
|
+
},
|
|
2747
|
+
},
|
|
2748
|
+
},
|
|
2749
|
+
{
|
|
2750
|
+
name: 'listConversations',
|
|
2751
|
+
endpoint: '/v1/customer-profile/{customerProfileId}/conversations',
|
|
2752
|
+
httpMethod: 'get',
|
|
2753
|
+
summary: "List a customer's conversations",
|
|
2754
|
+
description: 'Calls and chats with this customer, newest first.',
|
|
2755
|
+
stainlessPath: '(resource) customerProfile > (method) listConversations',
|
|
2756
|
+
qualified: 'client.customerProfile.listConversations',
|
|
2757
|
+
params: ['customerProfileId: string;', 'limit?: number;', 'page?: number;'],
|
|
2758
|
+
response: "{ data: { items: { id: string; conversationType: 'call' | 'chat'; durationMs: number; startedAt: string; summary: string; title: string; }[]; page: number; totalCount: number; }; }",
|
|
2759
|
+
markdown: "## listConversations\n\n`client.customerProfile.listConversations(customerProfileId: string, limit?: number, page?: number): { data: object; }`\n\n**get** `/v1/customer-profile/{customerProfileId}/conversations`\n\nCalls and chats with this customer, newest first.\n\n### Parameters\n\n- `customerProfileId: string`\n\n- `limit?: number`\n\n- `page?: number`\n\n### Returns\n\n- `{ data: { items: { id: string; conversationType: 'call' | 'chat'; durationMs: number; startedAt: string; summary: string; title: string; }[]; page: number; totalCount: number; }; }`\n\n - `data: { items: { id: string; conversationType: 'call' | 'chat'; durationMs: number; startedAt: string; summary: string; title: string; }[]; page: number; totalCount: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.customerProfile.listConversations('customerProfileId');\n\nconsole.log(response);\n```",
|
|
2760
|
+
perLanguage: {
|
|
2761
|
+
typescript: {
|
|
2762
|
+
method: 'client.customerProfile.listConversations',
|
|
2763
|
+
example: "import Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark({\n bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted\n});\n\nconst response = await client.customerProfile.listConversations('customerProfileId');\n\nconsole.log(response.data);",
|
|
2764
|
+
},
|
|
2765
|
+
python: {
|
|
2766
|
+
method: 'customer_profile.list_conversations',
|
|
2767
|
+
example: 'import os\nfrom roark_analytics import Roark\n\nclient = Roark(\n bearer_token=os.environ.get("ROARK_API_BEARER_TOKEN"), # This is the default and can be omitted\n)\nresponse = client.customer_profile.list_conversations(\n customer_profile_id="customerProfileId",\n)\nprint(response.data)',
|
|
2768
|
+
},
|
|
2769
|
+
http: {
|
|
2770
|
+
example: 'curl https://api.roark.ai/v1/customer-profile/$CUSTOMER_PROFILE_ID/conversations \\\n -H "Authorization: Bearer $ROARK_API_BEARER_TOKEN"',
|
|
2771
|
+
},
|
|
2772
|
+
},
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
name: 'setAttribute',
|
|
2776
|
+
endpoint: '/v1/customer-profile/{customerProfileId}/attributes/{key}',
|
|
2777
|
+
httpMethod: 'put',
|
|
2778
|
+
summary: 'Set a customer profile field',
|
|
2779
|
+
description: 'Sets the value and locks the field, so newer conversations cannot change it.',
|
|
2780
|
+
stainlessPath: '(resource) customerProfile > (method) setAttribute',
|
|
2781
|
+
qualified: 'client.customerProfile.setAttribute',
|
|
2782
|
+
params: ['customerProfileId: string;', 'key: string;', 'value: string;'],
|
|
2783
|
+
response: "{ data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: object; history: object[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }; }",
|
|
2784
|
+
markdown: "## setAttribute\n\n`client.customerProfile.setAttribute(customerProfileId: string, key: string, value: string): { data: object; }`\n\n**put** `/v1/customer-profile/{customerProfileId}/attributes/{key}`\n\nSets the value and locks the field, so newer conversations cannot change it.\n\n### Parameters\n\n- `customerProfileId: string`\n\n- `key: string`\n\n- `value: string`\n The new value. Setting a field locks it, so newer conversations cannot change it.\n\n### Returns\n\n- `{ data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: object; history: object[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }; }`\n\n - `data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: { callId: string; chatId: string; observedAt: string; offsetMs: number; quote: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }; history: { callId: string; chatId: string; observedAt: string; offsetMs: number; quote: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.customerProfile.setAttribute('FULL_NAME', {\n customerProfileId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',\n value: 'x',\n});\n\nconsole.log(response);\n```",
|
|
2785
|
+
perLanguage: {
|
|
2786
|
+
typescript: {
|
|
2787
|
+
method: 'client.customerProfile.setAttribute',
|
|
2788
|
+
example: "import Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark({\n bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted\n});\n\nconst response = await client.customerProfile.setAttribute('FULL_NAME', {\n customerProfileId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',\n value: 'x',\n});\n\nconsole.log(response.data);",
|
|
2789
|
+
},
|
|
2790
|
+
python: {
|
|
2791
|
+
method: 'customer_profile.set_attribute',
|
|
2792
|
+
example: 'import os\nfrom roark_analytics import Roark\n\nclient = Roark(\n bearer_token=os.environ.get("ROARK_API_BEARER_TOKEN"), # This is the default and can be omitted\n)\nresponse = client.customer_profile.set_attribute(\n key="FULL_NAME",\n customer_profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",\n value="x",\n)\nprint(response.data)',
|
|
2793
|
+
},
|
|
2794
|
+
http: {
|
|
2795
|
+
example: 'curl https://api.roark.ai/v1/customer-profile/$CUSTOMER_PROFILE_ID/attributes/$KEY \\\n -X PUT \\\n -H \'Content-Type: application/json\' \\\n -H "Authorization: Bearer $ROARK_API_BEARER_TOKEN" \\\n -d \'{\n "value": "x"\n }\'',
|
|
2796
|
+
},
|
|
2797
|
+
},
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
name: 'clearAttribute',
|
|
2801
|
+
endpoint: '/v1/customer-profile/{customerProfileId}/attributes/{key}',
|
|
2802
|
+
httpMethod: 'delete',
|
|
2803
|
+
summary: 'Clear a customer profile field',
|
|
2804
|
+
description: 'Removes the value and any lock, so a later conversation can fill it again.',
|
|
2805
|
+
stainlessPath: '(resource) customerProfile > (method) clearAttribute',
|
|
2806
|
+
qualified: 'client.customerProfile.clearAttribute',
|
|
2807
|
+
params: ['customerProfileId: string;', 'key: string;'],
|
|
2808
|
+
response: "{ data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: object; history: object[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }; }",
|
|
2809
|
+
markdown: "## clearAttribute\n\n`client.customerProfile.clearAttribute(customerProfileId: string, key: string): { data: object; }`\n\n**delete** `/v1/customer-profile/{customerProfileId}/attributes/{key}`\n\nRemoves the value and any lock, so a later conversation can fill it again.\n\n### Parameters\n\n- `customerProfileId: string`\n\n- `key: string`\n\n### Returns\n\n- `{ data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: object; history: object[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }; }`\n\n - `data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: { callId: string; chatId: string; observedAt: string; offsetMs: number; quote: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }; history: { callId: string; chatId: string; observedAt: string; offsetMs: number; quote: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.customerProfile.clearAttribute('FULL_NAME', {\n customerProfileId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',\n});\n\nconsole.log(response);\n```",
|
|
2810
|
+
perLanguage: {
|
|
2811
|
+
typescript: {
|
|
2812
|
+
method: 'client.customerProfile.clearAttribute',
|
|
2813
|
+
example: "import Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark({\n bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted\n});\n\nconst response = await client.customerProfile.clearAttribute('FULL_NAME', {\n customerProfileId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',\n});\n\nconsole.log(response.data);",
|
|
2814
|
+
},
|
|
2815
|
+
python: {
|
|
2816
|
+
method: 'customer_profile.clear_attribute',
|
|
2817
|
+
example: 'import os\nfrom roark_analytics import Roark\n\nclient = Roark(\n bearer_token=os.environ.get("ROARK_API_BEARER_TOKEN"), # This is the default and can be omitted\n)\nresponse = client.customer_profile.clear_attribute(\n "FULL_NAME",\n customer_profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",\n)\nprint(response.data)',
|
|
2818
|
+
},
|
|
2819
|
+
http: {
|
|
2820
|
+
example: 'curl https://api.roark.ai/v1/customer-profile/$CUSTOMER_PROFILE_ID/attributes/$KEY \\\n -X DELETE \\\n -H "Authorization: Bearer $ROARK_API_BEARER_TOKEN"',
|
|
2821
|
+
},
|
|
2822
|
+
},
|
|
2823
|
+
},
|
|
2824
|
+
{
|
|
2825
|
+
name: 'unlockAttribute',
|
|
2826
|
+
endpoint: '/v1/customer-profile/{customerProfileId}/attributes/{key}/unlock',
|
|
2827
|
+
httpMethod: 'post',
|
|
2828
|
+
summary: 'Unlock a customer profile field',
|
|
2829
|
+
description: 'Lets newer conversations change this field again. The current value stays until one does.',
|
|
2830
|
+
stainlessPath: '(resource) customerProfile > (method) unlockAttribute',
|
|
2831
|
+
qualified: 'client.customerProfile.unlockAttribute',
|
|
2832
|
+
params: ['customerProfileId: string;', 'key: string;'],
|
|
2833
|
+
response: "{ data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: object; history: object[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }; }",
|
|
2834
|
+
markdown: "## unlockAttribute\n\n`client.customerProfile.unlockAttribute(customerProfileId: string, key: string): { data: object; }`\n\n**post** `/v1/customer-profile/{customerProfileId}/attributes/{key}/unlock`\n\nLets newer conversations change this field again. The current value stays until one does.\n\n### Parameters\n\n- `customerProfileId: string`\n\n- `key: string`\n\n### Returns\n\n- `{ data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: object; history: object[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }; }`\n\n - `data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: { callId: string; chatId: string; observedAt: string; offsetMs: number; quote: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }; history: { callId: string; chatId: string; observedAt: string; offsetMs: number; quote: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.customerProfile.unlockAttribute('FULL_NAME', {\n customerProfileId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',\n});\n\nconsole.log(response);\n```",
|
|
2835
|
+
perLanguage: {
|
|
2836
|
+
typescript: {
|
|
2837
|
+
method: 'client.customerProfile.unlockAttribute',
|
|
2838
|
+
example: "import Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark({\n bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted\n});\n\nconst response = await client.customerProfile.unlockAttribute('FULL_NAME', {\n customerProfileId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',\n});\n\nconsole.log(response.data);",
|
|
2839
|
+
},
|
|
2840
|
+
python: {
|
|
2841
|
+
method: 'customer_profile.unlock_attribute',
|
|
2842
|
+
example: 'import os\nfrom roark_analytics import Roark\n\nclient = Roark(\n bearer_token=os.environ.get("ROARK_API_BEARER_TOKEN"), # This is the default and can be omitted\n)\nresponse = client.customer_profile.unlock_attribute(\n "FULL_NAME",\n customer_profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",\n)\nprint(response.data)',
|
|
2843
|
+
},
|
|
2844
|
+
http: {
|
|
2845
|
+
example: 'curl https://api.roark.ai/v1/customer-profile/$CUSTOMER_PROFILE_ID/attributes/$KEY/unlock \\\n -H "Authorization: Bearer $ROARK_API_BEARER_TOKEN"',
|
|
2846
|
+
},
|
|
2847
|
+
},
|
|
2848
|
+
},
|
|
2849
|
+
{
|
|
2850
|
+
name: 'updateNotes',
|
|
2851
|
+
endpoint: '/v1/customer-profile/{customerProfileId}/notes',
|
|
2852
|
+
httpMethod: 'put',
|
|
2853
|
+
summary: 'Update the notes on a customer profile',
|
|
2854
|
+
description: "Replaces your team's shared notes. Null or empty clears them. The last save wins.",
|
|
2855
|
+
stainlessPath: '(resource) customerProfile > (method) updateNotes',
|
|
2856
|
+
qualified: 'client.customerProfile.updateNotes',
|
|
2857
|
+
params: ['customerProfileId: string;', 'notes: string;'],
|
|
2858
|
+
response: "{ data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: object; history: object[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }; }",
|
|
2859
|
+
markdown: "## updateNotes\n\n`client.customerProfile.updateNotes(customerProfileId: string, notes: string): { data: object; }`\n\n**put** `/v1/customer-profile/{customerProfileId}/notes`\n\nReplaces your team's shared notes. Null or empty clears them. The last save wins.\n\n### Parameters\n\n- `customerProfileId: string`\n\n- `notes: string`\n Replaces the existing notes. Null or empty clears them.\n\n### Returns\n\n- `{ data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: object; history: object[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }; }`\n\n - `data: { id: string; agentIds: string[]; attributes: { blockedValue: string; evidence: { callId: string; chatId: string; observedAt: string; offsetMs: number; quote: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }; history: { callId: string; chatId: string; observedAt: string; offsetMs: number; quote: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; isLocked: boolean; key: string; observedAt: string; source: 'LIVE_EXTRACTION' | 'POST_CALL_EXTRACTION' | 'API' | 'USER'; value: string; }[]; chatCount: number; conversationCount: number; displayName: string; externalId: string; firstSeenAt: string; lastSeenAt: string; notes: string; notesUpdatedAt: string; phoneNumberE164: string; summary: string; talkTimeMs: number; voiceCount: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.customerProfile.updateNotes('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {\n notes: 'notes',\n});\n\nconsole.log(response);\n```",
|
|
2860
|
+
perLanguage: {
|
|
2861
|
+
typescript: {
|
|
2862
|
+
method: 'client.customerProfile.updateNotes',
|
|
2863
|
+
example: "import Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark({\n bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted\n});\n\nconst response = await client.customerProfile.updateNotes('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {\n notes: 'notes',\n});\n\nconsole.log(response.data);",
|
|
2864
|
+
},
|
|
2865
|
+
python: {
|
|
2866
|
+
method: 'customer_profile.update_notes',
|
|
2867
|
+
example: 'import os\nfrom roark_analytics import Roark\n\nclient = Roark(\n bearer_token=os.environ.get("ROARK_API_BEARER_TOKEN"), # This is the default and can be omitted\n)\nresponse = client.customer_profile.update_notes(\n customer_profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",\n notes="notes",\n)\nprint(response.data)',
|
|
2868
|
+
},
|
|
2869
|
+
http: {
|
|
2870
|
+
example: 'curl https://api.roark.ai/v1/customer-profile/$CUSTOMER_PROFILE_ID/notes \\\n -X PUT \\\n -H \'Content-Type: application/json\' \\\n -H "Authorization: Bearer $ROARK_API_BEARER_TOKEN" \\\n -d \'{\n "notes": "notes"\n }\'',
|
|
2871
|
+
},
|
|
2872
|
+
},
|
|
2873
|
+
},
|
|
2662
2874
|
{
|
|
2663
2875
|
name: 'list',
|
|
2664
2876
|
endpoint: '/v1/simulation/environment',
|