@roarkanalytics/sdk-mcp 6.7.0 → 6.9.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 +14 -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/local-docs-search.js +6 -6
- package/local-docs-search.js.map +1 -1
- package/local-docs-search.mjs +6 -6
- package/local-docs-search.mjs.map +1 -1
- package/package.json +1 -1
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/client-headers.ts +1 -1
- package/src/local-docs-search.ts +6 -6
- package/src/server.ts +1 -1
package/local-docs-search.mjs
CHANGED
|
@@ -3508,8 +3508,8 @@ const EMBEDDED_METHODS = [
|
|
|
3508
3508
|
stainlessPath: '(resource) autoimproveJob > (method) getById',
|
|
3509
3509
|
qualified: 'client.autoimproveJob.getByID',
|
|
3510
3510
|
params: ['jobId: string;'],
|
|
3511
|
-
response: "{ data: { id: string; agentId: string; baselineValue: number; concludedAt: string; createdAt: string; currentValue: number; customerIntegrationId: string; finalReport: string; initiatedByUserId: string; issueId: string; iterationCount: number; logEntries: { id: string; configPushId: string; createdAt: string; kind: string; orderIndex: number; passRateAfter: number; passRateBefore: number; questionOptions: string[]; simulationRunPlanJobId: string; text: string; trialCount: number; }[]; maxIterations: number; maxSimCalls: number; objectiveId: string; objectiveLabel: string; objectiveMetricDefinitionId: string; organizationId: string; projectId: string; simCallsUsed: number; stagingAgentId: string; stagingKind: 'DESIGNATED' | 'SHADOW' | 'CHANNEL'; status: string; targetValue: number; trigger: 'ISSUE' | 'RUN_THRESHOLD_FAILED' | 'USER' | 'DEGRADATION'; updatedAt: string; validationRunPlanId: string; workingMemory: string; }; }",
|
|
3512
|
-
markdown: "## getById\n\n`client.autoimproveJob.getByID(jobId: string): { data: object; }`\n\n**get** `/v1/autoimprove/job/{jobId}`\n\nFetch one job with its full worklog: every step Roark took, the validation batches with their pass-rate movement, any question it is waiting on, and its final report once concluded.\n\n### Parameters\n\n- `jobId: string`\n\n### Returns\n\n- `{ data: { id: string; agentId: string; baselineValue: number; concludedAt: string; createdAt: string; currentValue: number; customerIntegrationId: string; finalReport: string; initiatedByUserId: string; issueId: string; iterationCount: number; logEntries: { id: string; configPushId: string; createdAt: string; kind: string; orderIndex: number; passRateAfter: number; passRateBefore: number; questionOptions: string[]; simulationRunPlanJobId: string; text: string; trialCount: number; }[]; maxIterations: number; maxSimCalls: number; objectiveId: string; objectiveLabel: string; objectiveMetricDefinitionId: string; organizationId: string; projectId: string; simCallsUsed: number; stagingAgentId: string; stagingKind: 'DESIGNATED' | 'SHADOW' | 'CHANNEL'; status: string; targetValue: number; trigger: 'ISSUE' | 'RUN_THRESHOLD_FAILED' | 'USER' | 'DEGRADATION'; updatedAt: string; validationRunPlanId: string; workingMemory: string; }; }`\n\n - `data: { id: string; agentId: string; baselineValue: number; concludedAt: string; createdAt: string; currentValue: number; customerIntegrationId: string; finalReport: string; initiatedByUserId: string; issueId: string; iterationCount: number; logEntries: { id: string; configPushId: string; createdAt: string; kind: string; orderIndex: number; passRateAfter: number; passRateBefore: number; questionOptions: string[]; simulationRunPlanJobId: string; text: string; trialCount: number; }[]; maxIterations: number; maxSimCalls: number; objectiveId: string; objectiveLabel: string; objectiveMetricDefinitionId: string; organizationId: string; projectId: string; simCallsUsed: number; stagingAgentId: string; stagingKind: 'DESIGNATED' | 'SHADOW' | 'CHANNEL'; status: string; targetValue: number; trigger: 'ISSUE' | 'RUN_THRESHOLD_FAILED' | 'USER' | 'DEGRADATION'; updatedAt: string; validationRunPlanId: string; workingMemory: string; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.autoimproveJob.getByID('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');\n\nconsole.log(response);\n```",
|
|
3511
|
+
response: "{ data: { id: string; agentId: string; baselineValue: number; concludedAt: string; createdAt: string; currentValue: number; customerIntegrationId: string; finalReport: string; initiatedByUserId: string; issueId: string; iterationCount: number; logEntries: { id: string; configPushId: string; createdAt: string; kind: string; orderIndex: number; passRateAfter: number; passRateBefore: number; questionOptions: string[]; sentById: string; sentVia: 'PLATFORM' | 'ROARKY' | 'API'; simulationRunPlanJobId: string; text: string; trialCount: number; }[]; maxIterations: number; maxSimCalls: number; objectiveId: string; objectiveLabel: string; objectiveMetricDefinitionId: string; organizationId: string; projectId: string; simCallsUsed: number; stagingAgentId: string; stagingKind: 'DESIGNATED' | 'SHADOW' | 'CHANNEL'; status: string; targetValue: number; trigger: 'ISSUE' | 'RUN_THRESHOLD_FAILED' | 'USER' | 'DEGRADATION'; updatedAt: string; validationRunPlanId: string; workingMemory: string; }; }",
|
|
3512
|
+
markdown: "## getById\n\n`client.autoimproveJob.getByID(jobId: string): { data: object; }`\n\n**get** `/v1/autoimprove/job/{jobId}`\n\nFetch one job with its full worklog: every step Roark took, the validation batches with their pass-rate movement, any question it is waiting on, and its final report once concluded.\n\n### Parameters\n\n- `jobId: string`\n\n### Returns\n\n- `{ data: { id: string; agentId: string; baselineValue: number; concludedAt: string; createdAt: string; currentValue: number; customerIntegrationId: string; finalReport: string; initiatedByUserId: string; issueId: string; iterationCount: number; logEntries: { id: string; configPushId: string; createdAt: string; kind: string; orderIndex: number; passRateAfter: number; passRateBefore: number; questionOptions: string[]; sentById: string; sentVia: 'PLATFORM' | 'ROARKY' | 'API'; simulationRunPlanJobId: string; text: string; trialCount: number; }[]; maxIterations: number; maxSimCalls: number; objectiveId: string; objectiveLabel: string; objectiveMetricDefinitionId: string; organizationId: string; projectId: string; simCallsUsed: number; stagingAgentId: string; stagingKind: 'DESIGNATED' | 'SHADOW' | 'CHANNEL'; status: string; targetValue: number; trigger: 'ISSUE' | 'RUN_THRESHOLD_FAILED' | 'USER' | 'DEGRADATION'; updatedAt: string; validationRunPlanId: string; workingMemory: string; }; }`\n\n - `data: { id: string; agentId: string; baselineValue: number; concludedAt: string; createdAt: string; currentValue: number; customerIntegrationId: string; finalReport: string; initiatedByUserId: string; issueId: string; iterationCount: number; logEntries: { id: string; configPushId: string; createdAt: string; kind: string; orderIndex: number; passRateAfter: number; passRateBefore: number; questionOptions: string[]; sentById: string; sentVia: 'PLATFORM' | 'ROARKY' | 'API'; simulationRunPlanJobId: string; text: string; trialCount: number; }[]; maxIterations: number; maxSimCalls: number; objectiveId: string; objectiveLabel: string; objectiveMetricDefinitionId: string; organizationId: string; projectId: string; simCallsUsed: number; stagingAgentId: string; stagingKind: 'DESIGNATED' | 'SHADOW' | 'CHANNEL'; status: string; targetValue: number; trigger: 'ISSUE' | 'RUN_THRESHOLD_FAILED' | 'USER' | 'DEGRADATION'; updatedAt: string; validationRunPlanId: string; workingMemory: string; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.autoimproveJob.getByID('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');\n\nconsole.log(response);\n```",
|
|
3513
3513
|
perLanguage: {
|
|
3514
3514
|
typescript: {
|
|
3515
3515
|
method: 'client.autoimproveJob.getByID',
|
|
@@ -5806,11 +5806,11 @@ const EMBEDDED_METHODS = [
|
|
|
5806
5806
|
endpoint: '/v1/connections/agent',
|
|
5807
5807
|
httpMethod: 'post',
|
|
5808
5808
|
summary: 'Connect an agent',
|
|
5809
|
-
description: 'Connects the platform a project’s agents run on. The body is shaped by `provider`; `GET /v1/connections/agent/providers` lists what each needs. Retell, Vapi, ElevenLabs and Bland keys are checked by listing agents first, so a refused key returns 400 and nothing is stored. Platforms that pull agents start syncing straight away. For LIVEKIT_SELF_HOSTED and the Pipecat providers, the response carries `observerApiKey`, shown once, for your SDK to report calls with. Most platforms connect once per project, and a second create returns 409; LiveKit Cloud may connect several accounts.',
|
|
5809
|
+
description: 'Connects the platform a project’s agents run on. The body is shaped by `provider`; `GET /v1/connections/agent/providers` lists what each needs. Retell, Vapi, ElevenLabs and Bland keys are checked by listing agents first, so a refused key returns 400 and nothing is stored. An account with more agents than the project allows for `agentScope` ALL (25 unless raised for the project) returns 400 `too_many_agents`, including when `agentScope` is left out: send SELECTED with the `agentIds` to bring in, up to 1,000. Platforms that pull agents start syncing straight away. For LIVEKIT_SELF_HOSTED and the Pipecat providers, the response carries `observerApiKey`, shown once, for your SDK to report calls with. Most platforms connect once per project, and a second create returns 409; LiveKit Cloud may connect several accounts.',
|
|
5810
5810
|
stainlessPath: '(resource) agentConnection > (method) create',
|
|
5811
5811
|
qualified: 'client.agentConnection.create',
|
|
5812
5812
|
response: "{ data: { id: string; agentIds: string[]; agentNames: string[]; agentScope: 'ALL' | 'SELECTED'; capabilities: 'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'[]; createdAt: string; googleCes: { appId: string; deploymentId: string; gcpProjectId: string; location: string; serviceAccountEmail: string; versionId: string; }; kore: { appId: string; baseUrl: string; envName: string; }; livekit: { metadataEgressStrategy: 'EAGER' | 'DEFERRED'; metadataFilteringEnabled: boolean; url: string; }; name: string; pipecat: { appendAgentId: boolean; baseSignalingUrl: string; hasAuthToken: boolean; hasPccPublicKey: boolean; pccRoomProperties: object; pccStartBody: object; }; provider: string; samplingRate: number; status: 'ACTIVE' | 'INACTIVE'; sync: { createdAgentCount: number; endedAt: string; intervalMinutes: number; isUpToDate: boolean; startedAt: string; status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'; }; syncProblems: { agentId: string; agentName: string; at: string; reason: string; }[]; updatedAt: string; vapi: { outboundRequestBodyTemplate: object; }; }; observerApiKey: string; }",
|
|
5813
|
-
markdown: "## create\n\n`client.agentConnection.create(): { data: object; observerApiKey: string; }`\n\n**post** `/v1/connections/agent`\n\nConnects the platform a project’s agents run on. The body is shaped by `provider`; `GET /v1/connections/agent/providers` lists what each needs. Retell, Vapi, ElevenLabs and Bland keys are checked by listing agents first, so a refused key returns 400 and nothing is stored. Platforms that pull agents start syncing straight away. For LIVEKIT_SELF_HOSTED and the Pipecat providers, the response carries `observerApiKey`, shown once, for your SDK to report calls with. Most platforms connect once per project, and a second create returns 409; LiveKit Cloud may connect several accounts.\n\n### Returns\n\n- `{ data: { id: string; agentIds: string[]; agentNames: string[]; agentScope: 'ALL' | 'SELECTED'; capabilities: 'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'[]; createdAt: string; googleCes: { appId: string; deploymentId: string; gcpProjectId: string; location: string; serviceAccountEmail: string; versionId: string; }; kore: { appId: string; baseUrl: string; envName: string; }; livekit: { metadataEgressStrategy: 'EAGER' | 'DEFERRED'; metadataFilteringEnabled: boolean; url: string; }; name: string; pipecat: { appendAgentId: boolean; baseSignalingUrl: string; hasAuthToken: boolean; hasPccPublicKey: boolean; pccRoomProperties: object; pccStartBody: object; }; provider: string; samplingRate: number; status: 'ACTIVE' | 'INACTIVE'; sync: { createdAgentCount: number; endedAt: string; intervalMinutes: number; isUpToDate: boolean; startedAt: string; status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'; }; syncProblems: { agentId: string; agentName: string; at: string; reason: string; }[]; updatedAt: string; vapi: { outboundRequestBodyTemplate: object; }; }; observerApiKey: string; }`\n\n - `data: { id: string; agentIds: string[]; agentNames: string[]; agentScope: 'ALL' | 'SELECTED'; capabilities: 'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'[]; createdAt: string; googleCes: { appId: string; deploymentId: string; gcpProjectId: string; location: string; serviceAccountEmail: string; versionId: string; }; kore: { appId: string; baseUrl: string; envName: string; }; livekit: { metadataEgressStrategy: 'EAGER' | 'DEFERRED'; metadataFilteringEnabled: boolean; url: string; }; name: string; pipecat: { appendAgentId: boolean; baseSignalingUrl: string; hasAuthToken: boolean; hasPccPublicKey: boolean; pccRoomProperties: object; pccStartBody: object; }; provider: string; samplingRate: number; status: 'ACTIVE' | 'INACTIVE'; sync: { createdAgentCount: number; endedAt: string; intervalMinutes: number; isUpToDate: boolean; startedAt: string; status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'; }; syncProblems: { agentId: string; agentName: string; at: string; reason: string; }[]; updatedAt: string; vapi: { outboundRequestBodyTemplate: object; }; }`\n - `observerApiKey: string`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst agentConnection = await client.agentConnection.create({\n apiKey: 'x',\n name: 'Production Retell',\n provider: 'RETELL',\n});\n\nconsole.log(agentConnection);\n```",
|
|
5813
|
+
markdown: "## create\n\n`client.agentConnection.create(): { data: object; observerApiKey: string; }`\n\n**post** `/v1/connections/agent`\n\nConnects the platform a project’s agents run on. The body is shaped by `provider`; `GET /v1/connections/agent/providers` lists what each needs. Retell, Vapi, ElevenLabs and Bland keys are checked by listing agents first, so a refused key returns 400 and nothing is stored. An account with more agents than the project allows for `agentScope` ALL (25 unless raised for the project) returns 400 `too_many_agents`, including when `agentScope` is left out: send SELECTED with the `agentIds` to bring in, up to 1,000. Platforms that pull agents start syncing straight away. For LIVEKIT_SELF_HOSTED and the Pipecat providers, the response carries `observerApiKey`, shown once, for your SDK to report calls with. Most platforms connect once per project, and a second create returns 409; LiveKit Cloud may connect several accounts.\n\n### Returns\n\n- `{ data: { id: string; agentIds: string[]; agentNames: string[]; agentScope: 'ALL' | 'SELECTED'; capabilities: 'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'[]; createdAt: string; googleCes: { appId: string; deploymentId: string; gcpProjectId: string; location: string; serviceAccountEmail: string; versionId: string; }; kore: { appId: string; baseUrl: string; envName: string; }; livekit: { metadataEgressStrategy: 'EAGER' | 'DEFERRED'; metadataFilteringEnabled: boolean; url: string; }; name: string; pipecat: { appendAgentId: boolean; baseSignalingUrl: string; hasAuthToken: boolean; hasPccPublicKey: boolean; pccRoomProperties: object; pccStartBody: object; }; provider: string; samplingRate: number; status: 'ACTIVE' | 'INACTIVE'; sync: { createdAgentCount: number; endedAt: string; intervalMinutes: number; isUpToDate: boolean; startedAt: string; status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'; }; syncProblems: { agentId: string; agentName: string; at: string; reason: string; }[]; updatedAt: string; vapi: { outboundRequestBodyTemplate: object; }; }; observerApiKey: string; }`\n\n - `data: { id: string; agentIds: string[]; agentNames: string[]; agentScope: 'ALL' | 'SELECTED'; capabilities: 'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'[]; createdAt: string; googleCes: { appId: string; deploymentId: string; gcpProjectId: string; location: string; serviceAccountEmail: string; versionId: string; }; kore: { appId: string; baseUrl: string; envName: string; }; livekit: { metadataEgressStrategy: 'EAGER' | 'DEFERRED'; metadataFilteringEnabled: boolean; url: string; }; name: string; pipecat: { appendAgentId: boolean; baseSignalingUrl: string; hasAuthToken: boolean; hasPccPublicKey: boolean; pccRoomProperties: object; pccStartBody: object; }; provider: string; samplingRate: number; status: 'ACTIVE' | 'INACTIVE'; sync: { createdAgentCount: number; endedAt: string; intervalMinutes: number; isUpToDate: boolean; startedAt: string; status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'; }; syncProblems: { agentId: string; agentName: string; at: string; reason: string; }[]; updatedAt: string; vapi: { outboundRequestBodyTemplate: object; }; }`\n - `observerApiKey: string`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst agentConnection = await client.agentConnection.create({\n apiKey: 'x',\n name: 'Production Retell',\n provider: 'RETELL',\n});\n\nconsole.log(agentConnection);\n```",
|
|
5814
5814
|
perLanguage: {
|
|
5815
5815
|
typescript: {
|
|
5816
5816
|
method: 'client.agentConnection.create',
|
|
@@ -5830,12 +5830,12 @@ const EMBEDDED_METHODS = [
|
|
|
5830
5830
|
endpoint: '/v1/connections/agent/{connectionId}',
|
|
5831
5831
|
httpMethod: 'patch',
|
|
5832
5832
|
summary: 'Update an agent connection',
|
|
5833
|
-
description: 'Changes a connection’s settings or rotates its credential. Send `provider` (it must match the connection’s) and only the fields to change; the rest keep their stored values. A new Retell, Vapi, ElevenLabs or Bland key is checked by listing agents first. Set `status` to INACTIVE to pause syncing without deleting anything.',
|
|
5833
|
+
description: 'Changes a connection’s settings or rotates its credential. Send `provider` (it must match the connection’s) and only the fields to change; the rest keep their stored values. A new Retell, Vapi, ElevenLabs or Bland key is checked by listing agents first. Moving to `agentScope` ALL, or giving an ALL connection a new key, on an account with more agents than the project allows returns 400 `too_many_agents`, as does selecting more than 1,000. Set `status` to INACTIVE to pause syncing without deleting anything.',
|
|
5834
5834
|
stainlessPath: '(resource) agentConnection > (method) update',
|
|
5835
5835
|
qualified: 'client.agentConnection.update',
|
|
5836
5836
|
params: ['connectionId: string;'],
|
|
5837
5837
|
response: "{ data: { id: string; agentIds: string[]; agentNames: string[]; agentScope: 'ALL' | 'SELECTED'; capabilities: 'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'[]; createdAt: string; googleCes: { appId: string; deploymentId: string; gcpProjectId: string; location: string; serviceAccountEmail: string; versionId: string; }; kore: { appId: string; baseUrl: string; envName: string; }; livekit: { metadataEgressStrategy: 'EAGER' | 'DEFERRED'; metadataFilteringEnabled: boolean; url: string; }; name: string; pipecat: { appendAgentId: boolean; baseSignalingUrl: string; hasAuthToken: boolean; hasPccPublicKey: boolean; pccRoomProperties: object; pccStartBody: object; }; provider: string; samplingRate: number; status: 'ACTIVE' | 'INACTIVE'; sync: { createdAgentCount: number; endedAt: string; intervalMinutes: number; isUpToDate: boolean; startedAt: string; status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'; }; syncProblems: { agentId: string; agentName: string; at: string; reason: string; }[]; updatedAt: string; vapi: { outboundRequestBodyTemplate: object; }; }; }",
|
|
5838
|
-
markdown: "## update\n\n`client.agentConnection.update(connectionId: string): { data: object; }`\n\n**patch** `/v1/connections/agent/{connectionId}`\n\nChanges a connection’s settings or rotates its credential. Send `provider` (it must match the connection’s) and only the fields to change; the rest keep their stored values. A new Retell, Vapi, ElevenLabs or Bland key is checked by listing agents first. Set `status` to INACTIVE to pause syncing without deleting anything.\n\n### Parameters\n\n- `connectionId: string`\n\n### Returns\n\n- `{ data: { id: string; agentIds: string[]; agentNames: string[]; agentScope: 'ALL' | 'SELECTED'; capabilities: 'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'[]; createdAt: string; googleCes: { appId: string; deploymentId: string; gcpProjectId: string; location: string; serviceAccountEmail: string; versionId: string; }; kore: { appId: string; baseUrl: string; envName: string; }; livekit: { metadataEgressStrategy: 'EAGER' | 'DEFERRED'; metadataFilteringEnabled: boolean; url: string; }; name: string; pipecat: { appendAgentId: boolean; baseSignalingUrl: string; hasAuthToken: boolean; hasPccPublicKey: boolean; pccRoomProperties: object; pccStartBody: object; }; provider: string; samplingRate: number; status: 'ACTIVE' | 'INACTIVE'; sync: { createdAgentCount: number; endedAt: string; intervalMinutes: number; isUpToDate: boolean; startedAt: string; status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'; }; syncProblems: { agentId: string; agentName: string; at: string; reason: string; }[]; updatedAt: string; vapi: { outboundRequestBodyTemplate: object; }; }; }`\n\n - `data: { id: string; agentIds: string[]; agentNames: string[]; agentScope: 'ALL' | 'SELECTED'; capabilities: 'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'[]; createdAt: string; googleCes: { appId: string; deploymentId: string; gcpProjectId: string; location: string; serviceAccountEmail: string; versionId: string; }; kore: { appId: string; baseUrl: string; envName: string; }; livekit: { metadataEgressStrategy: 'EAGER' | 'DEFERRED'; metadataFilteringEnabled: boolean; url: string; }; name: string; pipecat: { appendAgentId: boolean; baseSignalingUrl: string; hasAuthToken: boolean; hasPccPublicKey: boolean; pccRoomProperties: object; pccStartBody: object; }; provider: string; samplingRate: number; status: 'ACTIVE' | 'INACTIVE'; sync: { createdAgentCount: number; endedAt: string; intervalMinutes: number; isUpToDate: boolean; startedAt: string; status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'; }; syncProblems: { agentId: string; agentName: string; at: string; reason: string; }[]; updatedAt: string; vapi: { outboundRequestBodyTemplate: object; }; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst agentConnection = await client.agentConnection.update(\n '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',\n { provider: 'RETELL' },\n);\n\nconsole.log(agentConnection);\n```",
|
|
5838
|
+
markdown: "## update\n\n`client.agentConnection.update(connectionId: string): { data: object; }`\n\n**patch** `/v1/connections/agent/{connectionId}`\n\nChanges a connection’s settings or rotates its credential. Send `provider` (it must match the connection’s) and only the fields to change; the rest keep their stored values. A new Retell, Vapi, ElevenLabs or Bland key is checked by listing agents first. Moving to `agentScope` ALL, or giving an ALL connection a new key, on an account with more agents than the project allows returns 400 `too_many_agents`, as does selecting more than 1,000. Set `status` to INACTIVE to pause syncing without deleting anything.\n\n### Parameters\n\n- `connectionId: string`\n\n### Returns\n\n- `{ data: { id: string; agentIds: string[]; agentNames: string[]; agentScope: 'ALL' | 'SELECTED'; capabilities: 'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'[]; createdAt: string; googleCes: { appId: string; deploymentId: string; gcpProjectId: string; location: string; serviceAccountEmail: string; versionId: string; }; kore: { appId: string; baseUrl: string; envName: string; }; livekit: { metadataEgressStrategy: 'EAGER' | 'DEFERRED'; metadataFilteringEnabled: boolean; url: string; }; name: string; pipecat: { appendAgentId: boolean; baseSignalingUrl: string; hasAuthToken: boolean; hasPccPublicKey: boolean; pccRoomProperties: object; pccStartBody: object; }; provider: string; samplingRate: number; status: 'ACTIVE' | 'INACTIVE'; sync: { createdAgentCount: number; endedAt: string; intervalMinutes: number; isUpToDate: boolean; startedAt: string; status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'; }; syncProblems: { agentId: string; agentName: string; at: string; reason: string; }[]; updatedAt: string; vapi: { outboundRequestBodyTemplate: object; }; }; }`\n\n - `data: { id: string; agentIds: string[]; agentNames: string[]; agentScope: 'ALL' | 'SELECTED'; capabilities: 'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'[]; createdAt: string; googleCes: { appId: string; deploymentId: string; gcpProjectId: string; location: string; serviceAccountEmail: string; versionId: string; }; kore: { appId: string; baseUrl: string; envName: string; }; livekit: { metadataEgressStrategy: 'EAGER' | 'DEFERRED'; metadataFilteringEnabled: boolean; url: string; }; name: string; pipecat: { appendAgentId: boolean; baseSignalingUrl: string; hasAuthToken: boolean; hasPccPublicKey: boolean; pccRoomProperties: object; pccStartBody: object; }; provider: string; samplingRate: number; status: 'ACTIVE' | 'INACTIVE'; sync: { createdAgentCount: number; endedAt: string; intervalMinutes: number; isUpToDate: boolean; startedAt: string; status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'; }; syncProblems: { agentId: string; agentName: string; at: string; reason: string; }[]; updatedAt: string; vapi: { outboundRequestBodyTemplate: object; }; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst agentConnection = await client.agentConnection.update(\n '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',\n { provider: 'RETELL' },\n);\n\nconsole.log(agentConnection);\n```",
|
|
5839
5839
|
perLanguage: {
|
|
5840
5840
|
typescript: {
|
|
5841
5841
|
method: 'client.agentConnection.update',
|