@roarkanalytics/sdk-mcp 6.8.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.
@@ -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',