@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/src/local-docs-search.ts
CHANGED
|
@@ -4251,9 +4251,9 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
4251
4251
|
qualified: 'client.autoimproveJob.getByID',
|
|
4252
4252
|
params: ['jobId: string;'],
|
|
4253
4253
|
response:
|
|
4254
|
-
"{ 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; }; }",
|
|
4254
|
+
"{ 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; }; }",
|
|
4255
4255
|
markdown:
|
|
4256
|
-
"## 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```",
|
|
4256
|
+
"## 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```",
|
|
4257
4257
|
perLanguage: {
|
|
4258
4258
|
typescript: {
|
|
4259
4259
|
method: 'client.autoimproveJob.getByID',
|
|
@@ -7016,13 +7016,13 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
7016
7016
|
httpMethod: 'post',
|
|
7017
7017
|
summary: 'Connect an agent',
|
|
7018
7018
|
description:
|
|
7019
|
-
'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.',
|
|
7019
|
+
'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.',
|
|
7020
7020
|
stainlessPath: '(resource) agentConnection > (method) create',
|
|
7021
7021
|
qualified: 'client.agentConnection.create',
|
|
7022
7022
|
response:
|
|
7023
7023
|
"{ 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; }",
|
|
7024
7024
|
markdown:
|
|
7025
|
-
"## 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```",
|
|
7025
|
+
"## 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```",
|
|
7026
7026
|
perLanguage: {
|
|
7027
7027
|
typescript: {
|
|
7028
7028
|
method: 'client.agentConnection.create',
|
|
@@ -7046,14 +7046,14 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
7046
7046
|
httpMethod: 'patch',
|
|
7047
7047
|
summary: 'Update an agent connection',
|
|
7048
7048
|
description:
|
|
7049
|
-
'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.',
|
|
7049
|
+
'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.',
|
|
7050
7050
|
stainlessPath: '(resource) agentConnection > (method) update',
|
|
7051
7051
|
qualified: 'client.agentConnection.update',
|
|
7052
7052
|
params: ['connectionId: string;'],
|
|
7053
7053
|
response:
|
|
7054
7054
|
"{ 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; }; }; }",
|
|
7055
7055
|
markdown:
|
|
7056
|
-
"## 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```",
|
|
7056
|
+
"## 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```",
|
|
7057
7057
|
perLanguage: {
|
|
7058
7058
|
typescript: {
|
|
7059
7059
|
method: 'client.agentConnection.update',
|
package/src/server.ts
CHANGED
|
@@ -41,7 +41,7 @@ export const newMcpServer = async ({
|
|
|
41
41
|
{ src: 'https://roark.ai/icon.png', mimeType: 'image/png', sizes: ['512x512'] },
|
|
42
42
|
],
|
|
43
43
|
// A literal, not MCP_SERVER_VERSION: publish.yml checks dist/server.js for it.
|
|
44
|
-
version: '6.
|
|
44
|
+
version: '6.9.0', // x-release-please-version
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
// Directory mode does not fetch instructions. The hosted document tells a
|