@roarkanalytics/sdk-mcp 6.3.0 → 6.4.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.
@@ -4845,7 +4845,7 @@ const EMBEDDED_METHODS = [
4845
4845
  qualified: 'client.tool.list',
4846
4846
  params: ['agentId?: string;', "includeBuiltIn?: 'true' | 'false';"],
4847
4847
  response: "{ data: { id: string; agentId: string; calendar: { appointmentTypes: object[]; calendarConnectionId: string; messages: object; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: object; tool: string; }; name: string; runtime: { changesData: boolean; messages: object; request: object; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }[]; }",
4848
- markdown: "## list\n\n`client.tool.list(agentId?: string, includeBuiltIn?: 'true' | 'false'): { data: object[]; }`\n\n**get** `/v1/tool`\n\nThe project's tools and the built-in ones, each with its latest version: inputs, description and, for a tool a hosted agent runs, its request. Attach one to an agent draft by id.\n\n### Parameters\n\n- `agentId?: string`\n Only tools scoped to this agent\n\n- `includeBuiltIn?: 'true' | 'false'`\n Include the built-in tools (default true)\n\n### Returns\n\n- `{ data: { id: string; agentId: string; calendar: { appointmentTypes: object[]; calendarConnectionId: string; messages: object; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: object; tool: string; }; name: string; runtime: { changesData: boolean; messages: object; request: object; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }[]; }`\n\n - `data: { id: string; agentId: string; calendar: { appointmentTypes: { calendarTargetId: string; durationMinutes: number; eventTypeId: number; eventTypeUri: string; name: string; whenToUse: string; }[]; calendarConnectionId: string; messages: { before: string; failure: string; slow: string; }; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: { before: string; failure: string; slow: string; }; tool: string; }; name: string; runtime: { changesData: boolean; messages: { before: string; failure: string; slow: string; }; request: { body: string; headers: object[]; method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs: number; url: string; }; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }[]`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst tools = await client.tool.list();\n\nconsole.log(tools);\n```",
4848
+ markdown: "## list\n\n`client.tool.list(agentId?: string, includeBuiltIn?: 'true' | 'false'): { data: object[]; }`\n\n**get** `/v1/tool`\n\nThe project's tools and the built-in ones, each with its latest version: inputs, description and, for a tool a hosted agent runs, its request. Attach one to an agent draft by id.\n\n### Parameters\n\n- `agentId?: string`\n Only tools scoped to this agent\n\n- `includeBuiltIn?: 'true' | 'false'`\n Include the built-in tools (default true)\n\n### Returns\n\n- `{ data: { id: string; agentId: string; calendar: { appointmentTypes: object[]; calendarConnectionId: string; messages: object; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: object; tool: string; }; name: string; runtime: { changesData: boolean; messages: object; request: object; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }[]; }`\n\n - `data: { id: string; agentId: string; calendar: { appointmentTypes: { calendarTargetId: string; durationMinutes: number; eventTypeId: number; eventTypeUri: string; goHighLevelCalendar: string; name: string; whenToUse: string; }[]; calendarConnectionId: string; messages: { before: string; failure: string; slow: string; }; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: { before: string; failure: string; slow: string; }; tool: string; }; name: string; runtime: { changesData: boolean; messages: { before: string; failure: string; slow: string; }; request: { body: string; headers: object[]; method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs: number; url: string; }; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }[]`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst tools = await client.tool.list();\n\nconsole.log(tools);\n```",
4849
4849
  perLanguage: {
4850
4850
  typescript: {
4851
4851
  method: 'client.tool.list',
@@ -4870,7 +4870,7 @@ const EMBEDDED_METHODS = [
4870
4870
  qualified: 'client.tool.getByID',
4871
4871
  params: ['toolId: string;'],
4872
4872
  response: "{ data: { id: string; agentId: string; calendar: { appointmentTypes: object[]; calendarConnectionId: string; messages: object; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: object; tool: string; }; name: string; runtime: { changesData: boolean; messages: object; request: object; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }; }",
4873
- markdown: "## getById\n\n`client.tool.getByID(toolId: string): { data: object; }`\n\n**get** `/v1/tool/{toolId}`\n\nGet a tool\n\n### Parameters\n\n- `toolId: string`\n\n### Returns\n\n- `{ data: { id: string; agentId: string; calendar: { appointmentTypes: object[]; calendarConnectionId: string; messages: object; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: object; tool: string; }; name: string; runtime: { changesData: boolean; messages: object; request: object; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }; }`\n\n - `data: { id: string; agentId: string; calendar: { appointmentTypes: { calendarTargetId: string; durationMinutes: number; eventTypeId: number; eventTypeUri: string; name: string; whenToUse: string; }[]; calendarConnectionId: string; messages: { before: string; failure: string; slow: string; }; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: { before: string; failure: string; slow: string; }; tool: string; }; name: string; runtime: { changesData: boolean; messages: { before: string; failure: string; slow: string; }; request: { body: string; headers: object[]; method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs: number; url: string; }; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.tool.getByID('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');\n\nconsole.log(response);\n```",
4873
+ markdown: "## getById\n\n`client.tool.getByID(toolId: string): { data: object; }`\n\n**get** `/v1/tool/{toolId}`\n\nGet a tool\n\n### Parameters\n\n- `toolId: string`\n\n### Returns\n\n- `{ data: { id: string; agentId: string; calendar: { appointmentTypes: object[]; calendarConnectionId: string; messages: object; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: object; tool: string; }; name: string; runtime: { changesData: boolean; messages: object; request: object; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }; }`\n\n - `data: { id: string; agentId: string; calendar: { appointmentTypes: { calendarTargetId: string; durationMinutes: number; eventTypeId: number; eventTypeUri: string; goHighLevelCalendar: string; name: string; whenToUse: string; }[]; calendarConnectionId: string; messages: { before: string; failure: string; slow: string; }; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: { before: string; failure: string; slow: string; }; tool: string; }; name: string; runtime: { changesData: boolean; messages: { before: string; failure: string; slow: string; }; request: { body: string; headers: object[]; method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs: number; url: string; }; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.tool.getByID('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');\n\nconsole.log(response);\n```",
4874
4874
  perLanguage: {
4875
4875
  typescript: {
4876
4876
  method: 'client.tool.getByID',
@@ -4897,7 +4897,7 @@ const EMBEDDED_METHODS = [
4897
4897
  'description: string;',
4898
4898
  'name: string;',
4899
4899
  'agentId?: string;',
4900
- "calendar?: { appointmentTypes: { name: string; calendarTargetId?: string; durationMinutes?: number; eventTypeId?: number; eventTypeUri?: string; whenToUse?: string; }[]; calendarConnectionId: string; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; messages?: { before?: string; failure?: string; slow?: string; }; simulate?: boolean; };",
4900
+ "calendar?: { appointmentTypes: { name: string; calendarTargetId?: string; durationMinutes?: number; eventTypeId?: number; eventTypeUri?: string; goHighLevelCalendar?: string; whenToUse?: string; }[]; calendarConnectionId: string; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; messages?: { before?: string; failure?: string; slow?: string; }; simulate?: boolean; };",
4901
4901
  'expectedResult?: string;',
4902
4902
  "inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[];",
4903
4903
  'invocationCriteria?: string;',
@@ -4905,7 +4905,7 @@ const EMBEDDED_METHODS = [
4905
4905
  "runtime?: { request: { url: string; body?: string; headers?: object[]; method?: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs?: number; }; changesData?: boolean; messages?: { before?: string; failure?: string; slow?: string; }; responseFields?: string[]; };",
4906
4906
  ],
4907
4907
  response: "{ data: { id: string; agentId: string; calendar: { appointmentTypes: object[]; calendarConnectionId: string; messages: object; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: object; tool: string; }; name: string; runtime: { changesData: boolean; messages: object; request: object; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }; }",
4908
- markdown: "## create\n\n`client.tool.create(description: string, name: string, agentId?: string, calendar?: { appointmentTypes: { name: string; calendarTargetId?: string; durationMinutes?: number; eventTypeId?: number; eventTypeUri?: string; whenToUse?: string; }[]; calendarConnectionId: string; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; messages?: { before?: string; failure?: string; slow?: string; }; simulate?: boolean; }, expectedResult?: string, inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[], invocationCriteria?: string, mcp?: { mcpServerId: string; tool: string; messages?: { before?: string; failure?: string; slow?: string; }; }, runtime?: { request: { url: string; body?: string; headers?: object[]; method?: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs?: number; }; changesData?: boolean; messages?: { before?: string; failure?: string; slow?: string; }; responseFields?: string[]; }): { data: object; }`\n\n**post** `/v1/tool`\n\nCreates a tool and declares its first version. A tool only recorded from calls under the same name is adopted; one already declared returns 409. Give it a `runtime` for a hosted agent to call your endpoint, a `calendar` for it to book on a calendar connected to the project, or `mcp` for it to call a tool on an MCP server connected to the project. Header values are returned on read, so keep secrets out of them.\n\n### Parameters\n\n- `description: string`\n When the agent should use the tool\n\n- `name: string`\n\n- `agentId?: string`\n\n- `calendar?: { appointmentTypes: { name: string; calendarTargetId?: string; durationMinutes?: number; eventTypeId?: number; eventTypeUri?: string; whenToUse?: string; }[]; calendarConnectionId: string; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; messages?: { before?: string; failure?: string; slow?: string; }; simulate?: boolean; }`\n Makes this a calendar tool, which Roark runs against a connected calendar: it takes no runtime and no inputs. Omit or null for any other tool; on update, omitting it makes the tool an ordinary one.\n\n- `expectedResult?: string`\n\n- `inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[]`\n\n- `invocationCriteria?: string`\n\n- `mcp?: { mcpServerId: string; tool: string; messages?: { before?: string; failure?: string; slow?: string; }; }`\n Makes this a tool on one of the project's MCP servers: it takes no runtime, no inputs and no calendar, and the description replaces the server's own. On update, omitting it makes the tool an ordinary one.\n\n- `runtime?: { request: { url: string; body?: string; headers?: object[]; method?: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs?: number; }; changesData?: boolean; messages?: { before?: string; failure?: string; slow?: string; }; responseFields?: string[]; }`\n Omit or null for a tool that is only graded\n\n### Returns\n\n- `{ data: { id: string; agentId: string; calendar: { appointmentTypes: object[]; calendarConnectionId: string; messages: object; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: object; tool: string; }; name: string; runtime: { changesData: boolean; messages: object; request: object; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }; }`\n\n - `data: { id: string; agentId: string; calendar: { appointmentTypes: { calendarTargetId: string; durationMinutes: number; eventTypeId: number; eventTypeUri: string; name: string; whenToUse: string; }[]; calendarConnectionId: string; messages: { before: string; failure: string; slow: string; }; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: { before: string; failure: string; slow: string; }; tool: string; }; name: string; runtime: { changesData: boolean; messages: { before: string; failure: string; slow: string; }; request: { body: string; headers: object[]; method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs: number; url: string; }; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst tool = await client.tool.create({ description: 'x', name: 'book_appointment' });\n\nconsole.log(tool);\n```",
4908
+ markdown: "## create\n\n`client.tool.create(description: string, name: string, agentId?: string, calendar?: { appointmentTypes: { name: string; calendarTargetId?: string; durationMinutes?: number; eventTypeId?: number; eventTypeUri?: string; goHighLevelCalendar?: string; whenToUse?: string; }[]; calendarConnectionId: string; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; messages?: { before?: string; failure?: string; slow?: string; }; simulate?: boolean; }, expectedResult?: string, inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[], invocationCriteria?: string, mcp?: { mcpServerId: string; tool: string; messages?: { before?: string; failure?: string; slow?: string; }; }, runtime?: { request: { url: string; body?: string; headers?: object[]; method?: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs?: number; }; changesData?: boolean; messages?: { before?: string; failure?: string; slow?: string; }; responseFields?: string[]; }): { data: object; }`\n\n**post** `/v1/tool`\n\nCreates a tool and declares its first version. A tool only recorded from calls under the same name is adopted; one already declared returns 409. Give it a `runtime` for a hosted agent to call your endpoint, a `calendar` for it to book on a calendar connected to the project, or `mcp` for it to call a tool on an MCP server connected to the project. Header values are returned on read, so keep secrets out of them.\n\n### Parameters\n\n- `description: string`\n When the agent should use the tool\n\n- `name: string`\n\n- `agentId?: string`\n\n- `calendar?: { appointmentTypes: { name: string; calendarTargetId?: string; durationMinutes?: number; eventTypeId?: number; eventTypeUri?: string; goHighLevelCalendar?: string; whenToUse?: string; }[]; calendarConnectionId: string; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; messages?: { before?: string; failure?: string; slow?: string; }; simulate?: boolean; }`\n Makes this a calendar tool, which Roark runs against a connected calendar: it takes no runtime and no inputs. Omit or null for any other tool; on update, omitting it makes the tool an ordinary one.\n\n- `expectedResult?: string`\n\n- `inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[]`\n\n- `invocationCriteria?: string`\n\n- `mcp?: { mcpServerId: string; tool: string; messages?: { before?: string; failure?: string; slow?: string; }; }`\n Makes this a tool on one of the project's MCP servers: it takes no runtime, no inputs and no calendar, and the description replaces the server's own. On update, omitting it makes the tool an ordinary one.\n\n- `runtime?: { request: { url: string; body?: string; headers?: object[]; method?: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs?: number; }; changesData?: boolean; messages?: { before?: string; failure?: string; slow?: string; }; responseFields?: string[]; }`\n Omit or null for a tool that is only graded\n\n### Returns\n\n- `{ data: { id: string; agentId: string; calendar: { appointmentTypes: object[]; calendarConnectionId: string; messages: object; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: object; tool: string; }; name: string; runtime: { changesData: boolean; messages: object; request: object; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }; }`\n\n - `data: { id: string; agentId: string; calendar: { appointmentTypes: { calendarTargetId: string; durationMinutes: number; eventTypeId: number; eventTypeUri: string; goHighLevelCalendar: string; name: string; whenToUse: string; }[]; calendarConnectionId: string; messages: { before: string; failure: string; slow: string; }; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: { before: string; failure: string; slow: string; }; tool: string; }; name: string; runtime: { changesData: boolean; messages: { before: string; failure: string; slow: string; }; request: { body: string; headers: object[]; method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs: number; url: string; }; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst tool = await client.tool.create({ description: 'x', name: 'book_appointment' });\n\nconsole.log(tool);\n```",
4909
4909
  perLanguage: {
4910
4910
  typescript: {
4911
4911
  method: 'client.tool.create',
@@ -4933,7 +4933,7 @@ const EMBEDDED_METHODS = [
4933
4933
  'description: string;',
4934
4934
  'name: string;',
4935
4935
  'agentId?: string;',
4936
- "calendar?: { appointmentTypes: { name: string; calendarTargetId?: string; durationMinutes?: number; eventTypeId?: number; eventTypeUri?: string; whenToUse?: string; }[]; calendarConnectionId: string; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; messages?: { before?: string; failure?: string; slow?: string; }; simulate?: boolean; };",
4936
+ "calendar?: { appointmentTypes: { name: string; calendarTargetId?: string; durationMinutes?: number; eventTypeId?: number; eventTypeUri?: string; goHighLevelCalendar?: string; whenToUse?: string; }[]; calendarConnectionId: string; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; messages?: { before?: string; failure?: string; slow?: string; }; simulate?: boolean; };",
4937
4937
  'expectedResult?: string;',
4938
4938
  "inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[];",
4939
4939
  'invocationCriteria?: string;',
@@ -4941,7 +4941,7 @@ const EMBEDDED_METHODS = [
4941
4941
  "runtime?: { request: { url: string; body?: string; headers?: object[]; method?: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs?: number; }; changesData?: boolean; messages?: { before?: string; failure?: string; slow?: string; }; responseFields?: string[]; };",
4942
4942
  ],
4943
4943
  response: "{ data: { id: string; agentId: string; calendar: { appointmentTypes: object[]; calendarConnectionId: string; messages: object; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: object; tool: string; }; name: string; runtime: { changesData: boolean; messages: object; request: object; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }; }",
4944
- markdown: "## update\n\n`client.tool.update(toolId: string, description: string, name: string, agentId?: string, calendar?: { appointmentTypes: { name: string; calendarTargetId?: string; durationMinutes?: number; eventTypeId?: number; eventTypeUri?: string; whenToUse?: string; }[]; calendarConnectionId: string; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; messages?: { before?: string; failure?: string; slow?: string; }; simulate?: boolean; }, expectedResult?: string, inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[], invocationCriteria?: string, mcp?: { mcpServerId: string; tool: string; messages?: { before?: string; failure?: string; slow?: string; }; }, runtime?: { request: { url: string; body?: string; headers?: object[]; method?: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs?: number; }; changesData?: boolean; messages?: { before?: string; failure?: string; slow?: string; }; responseFields?: string[]; }): { data: object; }`\n\n**put** `/v1/tool/{toolId}`\n\nReplaces the tool: its name, scope, inputs, description, grading hints, runtime, calendar and MCP tool. A field left out is cleared, so omitting agentId makes the tool project-wide and omitting calendar or mcp makes it an ordinary tool. A change declares a new version; agent versions pinned to an older one keep it. A tool managed by config-as-code returns 409.\n\n### Parameters\n\n- `toolId: string`\n\n- `description: string`\n When the agent should use the tool\n\n- `name: string`\n\n- `agentId?: string`\n\n- `calendar?: { appointmentTypes: { name: string; calendarTargetId?: string; durationMinutes?: number; eventTypeId?: number; eventTypeUri?: string; whenToUse?: string; }[]; calendarConnectionId: string; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; messages?: { before?: string; failure?: string; slow?: string; }; simulate?: boolean; }`\n Makes this a calendar tool, which Roark runs against a connected calendar: it takes no runtime and no inputs. Omit or null for any other tool; on update, omitting it makes the tool an ordinary one.\n\n- `expectedResult?: string`\n\n- `inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[]`\n\n- `invocationCriteria?: string`\n\n- `mcp?: { mcpServerId: string; tool: string; messages?: { before?: string; failure?: string; slow?: string; }; }`\n Makes this a tool on one of the project's MCP servers: it takes no runtime, no inputs and no calendar, and the description replaces the server's own. On update, omitting it makes the tool an ordinary one.\n\n- `runtime?: { request: { url: string; body?: string; headers?: object[]; method?: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs?: number; }; changesData?: boolean; messages?: { before?: string; failure?: string; slow?: string; }; responseFields?: string[]; }`\n Omit or null for a tool that is only graded\n\n### Returns\n\n- `{ data: { id: string; agentId: string; calendar: { appointmentTypes: object[]; calendarConnectionId: string; messages: object; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: object; tool: string; }; name: string; runtime: { changesData: boolean; messages: object; request: object; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }; }`\n\n - `data: { id: string; agentId: string; calendar: { appointmentTypes: { calendarTargetId: string; durationMinutes: number; eventTypeId: number; eventTypeUri: string; name: string; whenToUse: string; }[]; calendarConnectionId: string; messages: { before: string; failure: string; slow: string; }; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: { before: string; failure: string; slow: string; }; tool: string; }; name: string; runtime: { changesData: boolean; messages: { before: string; failure: string; slow: string; }; request: { body: string; headers: object[]; method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs: number; url: string; }; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst tool = await client.tool.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {\n description: 'x',\n name: 'book_appointment',\n});\n\nconsole.log(tool);\n```",
4944
+ markdown: "## update\n\n`client.tool.update(toolId: string, description: string, name: string, agentId?: string, calendar?: { appointmentTypes: { name: string; calendarTargetId?: string; durationMinutes?: number; eventTypeId?: number; eventTypeUri?: string; goHighLevelCalendar?: string; whenToUse?: string; }[]; calendarConnectionId: string; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; messages?: { before?: string; failure?: string; slow?: string; }; simulate?: boolean; }, expectedResult?: string, inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[], invocationCriteria?: string, mcp?: { mcpServerId: string; tool: string; messages?: { before?: string; failure?: string; slow?: string; }; }, runtime?: { request: { url: string; body?: string; headers?: object[]; method?: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs?: number; }; changesData?: boolean; messages?: { before?: string; failure?: string; slow?: string; }; responseFields?: string[]; }): { data: object; }`\n\n**put** `/v1/tool/{toolId}`\n\nReplaces the tool: its name, scope, inputs, description, grading hints, runtime, calendar and MCP tool. A field left out is cleared, so omitting agentId makes the tool project-wide and omitting calendar or mcp makes it an ordinary tool. A change declares a new version; agent versions pinned to an older one keep it. A tool managed by config-as-code returns 409.\n\n### Parameters\n\n- `toolId: string`\n\n- `description: string`\n When the agent should use the tool\n\n- `name: string`\n\n- `agentId?: string`\n\n- `calendar?: { appointmentTypes: { name: string; calendarTargetId?: string; durationMinutes?: number; eventTypeId?: number; eventTypeUri?: string; goHighLevelCalendar?: string; whenToUse?: string; }[]; calendarConnectionId: string; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; messages?: { before?: string; failure?: string; slow?: string; }; simulate?: boolean; }`\n Makes this a calendar tool, which Roark runs against a connected calendar: it takes no runtime and no inputs. Omit or null for any other tool; on update, omitting it makes the tool an ordinary one.\n\n- `expectedResult?: string`\n\n- `inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[]`\n\n- `invocationCriteria?: string`\n\n- `mcp?: { mcpServerId: string; tool: string; messages?: { before?: string; failure?: string; slow?: string; }; }`\n Makes this a tool on one of the project's MCP servers: it takes no runtime, no inputs and no calendar, and the description replaces the server's own. On update, omitting it makes the tool an ordinary one.\n\n- `runtime?: { request: { url: string; body?: string; headers?: object[]; method?: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs?: number; }; changesData?: boolean; messages?: { before?: string; failure?: string; slow?: string; }; responseFields?: string[]; }`\n Omit or null for a tool that is only graded\n\n### Returns\n\n- `{ data: { id: string; agentId: string; calendar: { appointmentTypes: object[]; calendarConnectionId: string; messages: object; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: object; tool: string; }; name: string; runtime: { changesData: boolean; messages: object; request: object; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }; }`\n\n - `data: { id: string; agentId: string; calendar: { appointmentTypes: { calendarTargetId: string; durationMinutes: number; eventTypeId: number; eventTypeUri: string; goHighLevelCalendar: string; name: string; whenToUse: string; }[]; calendarConnectionId: string; messages: { before: string; failure: string; slow: string; }; operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'; simulate: boolean; }; createdAt: string; description: string; expectedResult: string; inputs: { description: string; name: string; required: boolean; type: 'string' | 'number' | 'boolean'; }[]; invocationCriteria: string; mcp: { mcpServerId: string; messages: { before: string; failure: string; slow: string; }; tool: string; }; name: string; runtime: { changesData: boolean; messages: { before: string; failure: string; slow: string; }; request: { body: string; headers: object[]; method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE'; timeoutMs: number; url: string; }; responseFields: string[]; }; source: 'CUSTOM' | 'SYSTEM'; systemKey: string; updatedAt: string; version: number; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst tool = await client.tool.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {\n description: 'x',\n name: 'book_appointment',\n});\n\nconsole.log(tool);\n```",
4945
4945
  perLanguage: {
4946
4946
  typescript: {
4947
4947
  method: 'client.tool.update',
@@ -5105,7 +5105,7 @@ const EMBEDDED_METHODS = [
5105
5105
  qualified: 'client.calendarConnection.list',
5106
5106
  params: ["provider?: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL';"],
5107
5107
  response: "{ data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }[]; pagination: { hasMore: boolean; nextCursor: string; total: number; }; }",
5108
- markdown: "## list\n\n`client.calendarConnection.list(provider?: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'): { data: object[]; pagination: object; }`\n\n**get** `/v1/connections/calendar`\n\nReturns every calendar connection in the authenticated project, by label. A project has a handful of these, so the list is not paginated: `pagination.hasMore` is always false.\n\n### Parameters\n\n- `provider?: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'`\n Who holds the calendar. CAL_COM is connected with an API key; GOOGLE and CALENDLY are connected by consent, through `POST /v1/connections/calendar/google/authorize-url` and `POST /v1/connections/calendar/calendly/authorize-url`.\n\n### Returns\n\n- `{ data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }[]; pagination: { hasMore: boolean; nextCursor: string; total: number; }; }`\n\n - `data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: 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 calendarConnections = await client.calendarConnection.list();\n\nconsole.log(calendarConnections);\n```",
5108
+ markdown: "## list\n\n`client.calendarConnection.list(provider?: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'): { data: object[]; pagination: object; }`\n\n**get** `/v1/connections/calendar`\n\nReturns every calendar connection in the authenticated project, by label. A project has a handful of these, so the list is not paginated: `pagination.hasMore` is always false.\n\n### Parameters\n\n- `provider?: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'`\n Who holds the calendar. CAL_COM and GO_HIGH_LEVEL are connected with a key, GO_HIGH_LEVEL also needing the sub-account the key belongs to; GOOGLE and CALENDLY are connected by consent, through `POST /v1/connections/calendar/google/authorize-url` and `POST /v1/connections/calendar/calendly/authorize-url`.\n\n### Returns\n\n- `{ data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }[]; pagination: { hasMore: boolean; nextCursor: string; total: number; }; }`\n\n - `data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: 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 calendarConnections = await client.calendarConnection.list();\n\nconsole.log(calendarConnections);\n```",
5109
5109
  perLanguage: {
5110
5110
  typescript: {
5111
5111
  method: 'client.calendarConnection.list',
@@ -5157,10 +5157,11 @@ const EMBEDDED_METHODS = [
5157
5157
  'apiKey: string;',
5158
5158
  'label: string;',
5159
5159
  "provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL';",
5160
+ 'goHighLevelLocation?: string;',
5160
5161
  'timezone?: string;',
5161
5162
  ],
5162
5163
  response: "{ data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }; }",
5163
- markdown: "## create\n\n`client.calendarConnection.create(apiKey: string, label: string, provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL', timezone?: string): { data: object; }`\n\n**post** `/v1/connections/calendar`\n\nVerifies the credential against the provider and, only if it works, stores it encrypted. A credential the provider rejects is a 400 and no connection is created: a connection that has never worked would next be exercised by an inbound call at 2am, with nobody there to fix it.\n\n### Parameters\n\n- `apiKey: string`\n The provider account’s API key. For CAL_COM, a Cal.com API key (starts with `cal_`). It is verified against the provider before anything is stored, so an invalid key is a 400 and no connection is created. Stored encrypted and never returned.\n\n- `label: string`\n Customer-facing name for this account, unique within the project. Required.\n\n- `provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'`\n Who holds the calendar. CAL_COM is connected with an API key; GOOGLE and CALENDLY are connected by consent, through `POST /v1/connections/calendar/google/authorize-url` and `POST /v1/connections/calendar/calendly/authorize-url`.\n\n- `timezone?: string`\n The named IANA timezone to offer slots in, for example `America/Los_Angeles`. Omit to adopt the provider account’s own timezone. A fixed offset such as `-08:00` is rejected: it does not observe DST.\n\n### Returns\n\n- `{ data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }; }`\n\n - `data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst calendarConnection = await client.calendarConnection.create({\n apiKey: 'x',\n label: 'x',\n provider: 'CAL_COM',\n});\n\nconsole.log(calendarConnection);\n```",
5164
+ markdown: "## create\n\n`client.calendarConnection.create(apiKey: string, label: string, provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL', goHighLevelLocation?: string, timezone?: string): { data: object; }`\n\n**post** `/v1/connections/calendar`\n\nVerifies the credential against the provider and, only if it works, stores it encrypted. A credential the provider rejects is a 400 and no connection is created: a connection that has never worked would next be exercised by an inbound call at 2am, with nobody there to fix it.\n\n### Parameters\n\n- `apiKey: string`\n The provider account’s API key. For CAL_COM, a Cal.com API key (starts with `cal_`). For GO_HIGH_LEVEL, a sub-account Private Integration Token, which must carry the `calendars.readonly`, `calendars/events.readonly`, `calendars/events.write`, `contacts.readonly`, `contacts.write` and `locations.readonly` scopes. It is verified against the provider before anything is stored, so an invalid key is a 400 and no connection is created. Stored encrypted and never returned.\n\n- `label: string`\n Customer-facing name for this account, unique within the project. Required.\n\n- `provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'`\n Who holds the calendar. CAL_COM and GO_HIGH_LEVEL are connected with a key, GO_HIGH_LEVEL also needing the sub-account the key belongs to; GOOGLE and CALENDLY are connected by consent, through `POST /v1/connections/calendar/google/authorize-url` and `POST /v1/connections/calendar/calendly/authorize-url`.\n\n- `goHighLevelLocation?: string`\n Required for GO_HIGH_LEVEL and ignored by every other provider: the sub-account the token belongs to, for example `ve9EPM428h8vShlRW1KT`. A Private Integration Token does not name its own sub-account and every calendar call needs one, so the two are stored and verified together: a token minted in a different sub-account is a 400.\n\n- `timezone?: string`\n The named IANA timezone to offer slots in, for example `America/Los_Angeles`. Omit to adopt the provider account’s own timezone. A fixed offset such as `-08:00` is rejected: it does not observe DST.\n\n### Returns\n\n- `{ data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }; }`\n\n - `data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst calendarConnection = await client.calendarConnection.create({\n apiKey: 'x',\n label: 'x',\n provider: 'CAL_COM',\n});\n\nconsole.log(calendarConnection);\n```",
5164
5165
  perLanguage: {
5165
5166
  typescript: {
5166
5167
  method: 'client.calendarConnection.create',
@@ -5238,9 +5239,15 @@ const EMBEDDED_METHODS = [
5238
5239
  description: 'Renames a connection, changes the timezone slots are offered in, or rotates the credential. A rotated credential is verified first, and a verified credential returns the connection to ACTIVE.',
5239
5240
  stainlessPath: '(resource) calendarConnection > (method) update',
5240
5241
  qualified: 'client.calendarConnection.update',
5241
- params: ['connectionId: string;', 'apiKey?: string;', 'label?: string;', 'timezone?: string;'],
5242
+ params: [
5243
+ 'connectionId: string;',
5244
+ 'apiKey?: string;',
5245
+ 'goHighLevelLocation?: string;',
5246
+ 'label?: string;',
5247
+ 'timezone?: string;',
5248
+ ],
5242
5249
  response: "{ data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }; }",
5243
- markdown: "## update\n\n`client.calendarConnection.update(connectionId: string, apiKey?: string, label?: string, timezone?: string): { data: object; }`\n\n**patch** `/v1/connections/calendar/{connectionId}`\n\nRenames a connection, changes the timezone slots are offered in, or rotates the credential. A rotated credential is verified first, and a verified credential returns the connection to ACTIVE.\n\n### Parameters\n\n- `connectionId: string`\n\n- `apiKey?: string`\n Rotate the credential. The new key is verified before it is stored, and a verified key returns the connection to ACTIVE, which is how a connection recovers from INVALID_CREDENTIALS.\n\n- `label?: string`\n Rename the connection.\n\n- `timezone?: string`\n Change the named IANA timezone slots are offered in.\n\n### Returns\n\n- `{ data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }; }`\n\n - `data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst calendarConnection = await client.calendarConnection.update('connectionId');\n\nconsole.log(calendarConnection);\n```",
5250
+ markdown: "## update\n\n`client.calendarConnection.update(connectionId: string, apiKey?: string, goHighLevelLocation?: string, label?: string, timezone?: string): { data: object; }`\n\n**patch** `/v1/connections/calendar/{connectionId}`\n\nRenames a connection, changes the timezone slots are offered in, or rotates the credential. A rotated credential is verified first, and a verified credential returns the connection to ACTIVE.\n\n### Parameters\n\n- `connectionId: string`\n\n- `apiKey?: string`\n Rotate the credential. The new key is verified before it is stored, and a verified key returns the connection to ACTIVE, which is how a connection recovers from INVALID_CREDENTIALS.\n\n- `goHighLevelLocation?: string`\n Only with `apiKey`, and only for GO_HIGH_LEVEL: the sub-account the rotated token belongs to. Required there because the token and the sub-account are one credential, so a rotation has to name both.\n\n- `label?: string`\n Rename the connection.\n\n- `timezone?: string`\n Change the named IANA timezone slots are offered in.\n\n### Returns\n\n- `{ data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }; }`\n\n - `data: { id: string; accountLabel: string; capabilities: { auth: 'API_KEY' | 'OAUTH'; availabilityWindowDays: number; operations: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS'[]; requiresAttendeeEmail: boolean; roarkOwnsBookingPolicy: boolean; slotHold: 'RESERVATION' | 'NONE'; }; createdAt: string; credentialExpiresAt: string; label: string; lastCheckedAt: string; provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst calendarConnection = await client.calendarConnection.update('connectionId');\n\nconsole.log(calendarConnection);\n```",
5244
5251
  perLanguage: {
5245
5252
  typescript: {
5246
5253
  method: 'client.calendarConnection.update',
@@ -5289,8 +5296,8 @@ const EMBEDDED_METHODS = [
5289
5296
  stainlessPath: '(resource) calendarConnection > (method) listTargets',
5290
5297
  qualified: 'client.calendarConnection.listTargets',
5291
5298
  params: ['connectionId: string;'],
5292
- response: "{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; }; }[]; }",
5293
- markdown: "## listTargets\n\n`client.calendarConnection.listTargets(connectionId: string): { data: object[]; }`\n\n**get** `/v1/connections/calendar/{connectionId}/targets`\n\nWhat an agent can be pointed at on this connection: Cal.com event types today, Google calendars when that lands. Read live from the provider, so an event type added since you connected is here without reconnecting. Each entry carries a `target` ready to put on a calendar tool, so nothing has to assemble one by hand.\n\n### Parameters\n\n- `connectionId: string`\n\n### Returns\n\n- `{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; }; }[]; }`\n\n - `data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: { endMinute: number; startMinute: number; weekday: number; }[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; }; }[]`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.calendarConnection.listTargets('connectionId');\n\nconsole.log(response);\n```",
5299
+ response: "{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; } | { goHighLevelCalendar: string; provider: 'GO_HIGH_LEVEL'; durationMinutes?: number; }; }[]; }",
5300
+ markdown: "## listTargets\n\n`client.calendarConnection.listTargets(connectionId: string): { data: object[]; }`\n\n**get** `/v1/connections/calendar/{connectionId}/targets`\n\nWhat an agent can be pointed at on this connection: Cal.com event types today, Google calendars when that lands. Read live from the provider, so an event type added since you connected is here without reconnecting. Each entry carries a `target` ready to put on a calendar tool, so nothing has to assemble one by hand.\n\n### Parameters\n\n- `connectionId: string`\n\n### Returns\n\n- `{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; } | { goHighLevelCalendar: string; provider: 'GO_HIGH_LEVEL'; durationMinutes?: number; }; }[]; }`\n\n - `data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: { endMinute: number; startMinute: number; weekday: number; }[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; } | { goHighLevelCalendar: string; provider: 'GO_HIGH_LEVEL'; durationMinutes?: number; }; }[]`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.calendarConnection.listTargets('connectionId');\n\nconsole.log(response);\n```",
5294
5301
  perLanguage: {
5295
5302
  typescript: {
5296
5303
  method: 'client.calendarConnection.listTargets',
@@ -5314,8 +5321,8 @@ const EMBEDDED_METHODS = [
5314
5321
  stainlessPath: '(resource) calendarConnection > (method) getTarget',
5315
5322
  qualified: 'client.calendarConnection.getTarget',
5316
5323
  params: ['connectionId: string;', 'targetId: string;'],
5317
- response: "{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiredBookingFields: string[]; requiresAttendeeEmail: boolean; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; }; }; }",
5318
- markdown: "## getTarget\n\n`client.calendarConnection.getTarget(connectionId: string, targetId: string): { data: object; }`\n\n**get** `/v1/connections/calendar/{connectionId}/targets/{targetId}`\n\nThe same entry as the list, plus what it demands of a booker. `requiresAttendeeEmail` is the field that decides an agent’s design: the attendee object itself needs only a name and a timezone, but an event type can declare email required, and an agent that cannot collect one simply cannot book on it. Read this when configuring a calendar tool, not after a caller is already waiting. Costs one provider call more than the list, which is why the list does not fold it in.\n\n### Parameters\n\n- `connectionId: string`\n\n- `targetId: string`\n\n### Returns\n\n- `{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiredBookingFields: string[]; requiresAttendeeEmail: boolean; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; }; }; }`\n\n - `data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: { endMinute: number; startMinute: number; weekday: number; }[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiredBookingFields: string[]; requiresAttendeeEmail: boolean; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; }; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.calendarConnection.getTarget('targetId', {\n connectionId: 'connectionId',\n});\n\nconsole.log(response);\n```",
5324
+ response: "{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiredBookingFields: string[]; requiresAttendeeEmail: boolean; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; } | { goHighLevelCalendar: string; provider: 'GO_HIGH_LEVEL'; durationMinutes?: number; }; }; }",
5325
+ markdown: "## getTarget\n\n`client.calendarConnection.getTarget(connectionId: string, targetId: string): { data: object; }`\n\n**get** `/v1/connections/calendar/{connectionId}/targets/{targetId}`\n\nThe same entry as the list, plus what it demands of a booker. `requiresAttendeeEmail` is the field that decides an agent’s design: the attendee object itself needs only a name and a timezone, but an event type can declare email required, and an agent that cannot collect one simply cannot book on it. Read this when configuring a calendar tool, not after a caller is already waiting. Costs one provider call more than the list, which is why the list does not fold it in.\n\n### Parameters\n\n- `connectionId: string`\n\n- `targetId: string`\n\n### Returns\n\n- `{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiredBookingFields: string[]; requiresAttendeeEmail: boolean; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; } | { goHighLevelCalendar: string; provider: 'GO_HIGH_LEVEL'; durationMinutes?: number; }; }; }`\n\n - `data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: { endMinute: number; startMinute: number; weekday: number; }[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiredBookingFields: string[]; requiresAttendeeEmail: boolean; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; } | { goHighLevelCalendar: string; provider: 'GO_HIGH_LEVEL'; durationMinutes?: number; }; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.calendarConnection.getTarget('targetId', {\n connectionId: 'connectionId',\n});\n\nconsole.log(response);\n```",
5319
5326
  perLanguage: {
5320
5327
  typescript: {
5321
5328
  method: 'client.calendarConnection.getTarget',
@@ -5376,8 +5383,8 @@ const EMBEDDED_METHODS = [
5376
5383
  'minNoticeMinutes?: number;',
5377
5384
  'slotIntervalMinutes?: number;',
5378
5385
  ],
5379
- response: "{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; }; }; }",
5380
- markdown: "## createTarget\n\n`client.calendarConnection.createTarget(connectionId: string, calendarId: string, durationMinutes: number, name: string, allDayEventsBlock?: boolean, bufferAfterMinutes?: number, bufferBeforeMinutes?: number, horizonDays?: number, hours?: { endMinute: number; startMinute: number; weekday: number; }[], minNoticeMinutes?: number, slotIntervalMinutes?: number): { data: object; }`\n\n**post** `/v1/connections/calendar/{connectionId}/targets`\n\nOnly for a connection whose `capabilities.roarkOwnsBookingPolicy` is true. A calendar with no scheduling of its own has nothing an agent can be pointed at, so the thing a calendar tool books into is created here: the calendar, how long an appointment runs, and the hours it is offered in. The policy and the hours are written together, because a target with no hours offers nothing. Refused if the calendar is one the account can only read.\n\n### Parameters\n\n- `connectionId: string`\n\n- `calendarId: string`\n The calendar to write appointments to, from `GET /v1/connections/calendar/{connectionId}/calendars`. `primary` is accepted and stored as the account’s own id.\n\n- `durationMinutes: number`\n\n- `name: string`\n Unique within the connection, and how a config file refers to this target. Letters, digits, spaces, _ or -.\n\n- `allDayEventsBlock?: boolean`\n Whether an all-day event closes the day. Defaults to true, because a calendar marks all-day events free unless their creator says otherwise and a public holiday entered as one would otherwise be bookable.\n\n- `bufferAfterMinutes?: number`\n\n- `bufferBeforeMinutes?: number`\n Dead time before an appointment, counted as busy when a slot is offered. Defaults to 0.\n\n- `horizonDays?: number`\n How far ahead appointments may be made. Defaults to 30.\n\n- `hours?: { endMinute: number; startMinute: number; weekday: number; }[]`\n The windows of the week appointments are offered in. Omit to adopt Monday to Friday, 09:00 to 17:00. A target with no windows offers nothing at all, which reads to a caller as a permanently full diary.\n\n- `minNoticeMinutes?: number`\n How soon from now an appointment may be made. Defaults to 120.\n\n- `slotIntervalMinutes?: number`\n The grid slots are offered on. Defaults to the duration, which gives back-to-back appointments.\n\n### Returns\n\n- `{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; }; }; }`\n\n - `data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: { endMinute: number; startMinute: number; weekday: number; }[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; }; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.calendarConnection.createTarget('connectionId', {\n calendarId: 'clinic@example.com',\n durationMinutes: 30,\n name: 'Front desk',\n});\n\nconsole.log(response);\n```",
5386
+ response: "{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; } | { goHighLevelCalendar: string; provider: 'GO_HIGH_LEVEL'; durationMinutes?: number; }; }; }",
5387
+ markdown: "## createTarget\n\n`client.calendarConnection.createTarget(connectionId: string, calendarId: string, durationMinutes: number, name: string, allDayEventsBlock?: boolean, bufferAfterMinutes?: number, bufferBeforeMinutes?: number, horizonDays?: number, hours?: { endMinute: number; startMinute: number; weekday: number; }[], minNoticeMinutes?: number, slotIntervalMinutes?: number): { data: object; }`\n\n**post** `/v1/connections/calendar/{connectionId}/targets`\n\nOnly for a connection whose `capabilities.roarkOwnsBookingPolicy` is true. A calendar with no scheduling of its own has nothing an agent can be pointed at, so the thing a calendar tool books into is created here: the calendar, how long an appointment runs, and the hours it is offered in. The policy and the hours are written together, because a target with no hours offers nothing. Refused if the calendar is one the account can only read.\n\n### Parameters\n\n- `connectionId: string`\n\n- `calendarId: string`\n The calendar to write appointments to, from `GET /v1/connections/calendar/{connectionId}/calendars`. `primary` is accepted and stored as the account’s own id.\n\n- `durationMinutes: number`\n\n- `name: string`\n Unique within the connection, and how a config file refers to this target. Letters, digits, spaces, _ or -.\n\n- `allDayEventsBlock?: boolean`\n Whether an all-day event closes the day. Defaults to true, because a calendar marks all-day events free unless their creator says otherwise and a public holiday entered as one would otherwise be bookable.\n\n- `bufferAfterMinutes?: number`\n\n- `bufferBeforeMinutes?: number`\n Dead time before an appointment, counted as busy when a slot is offered. Defaults to 0.\n\n- `horizonDays?: number`\n How far ahead appointments may be made. Defaults to 30.\n\n- `hours?: { endMinute: number; startMinute: number; weekday: number; }[]`\n The windows of the week appointments are offered in. Omit to adopt Monday to Friday, 09:00 to 17:00. A target with no windows offers nothing at all, which reads to a caller as a permanently full diary.\n\n- `minNoticeMinutes?: number`\n How soon from now an appointment may be made. Defaults to 120.\n\n- `slotIntervalMinutes?: number`\n The grid slots are offered on. Defaults to the duration, which gives back-to-back appointments.\n\n### Returns\n\n- `{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; } | { goHighLevelCalendar: string; provider: 'GO_HIGH_LEVEL'; durationMinutes?: number; }; }; }`\n\n - `data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: { endMinute: number; startMinute: number; weekday: number; }[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; } | { goHighLevelCalendar: string; provider: 'GO_HIGH_LEVEL'; durationMinutes?: number; }; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.calendarConnection.createTarget('connectionId', {\n calendarId: 'clinic@example.com',\n durationMinutes: 30,\n name: 'Front desk',\n});\n\nconsole.log(response);\n```",
5381
5388
  perLanguage: {
5382
5389
  typescript: {
5383
5390
  method: 'client.calendarConnection.createTarget',
@@ -5413,8 +5420,8 @@ const EMBEDDED_METHODS = [
5413
5420
  'name?: string;',
5414
5421
  'slotIntervalMinutes?: number;',
5415
5422
  ],
5416
- response: "{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; }; }; }",
5417
- markdown: "## updateTarget\n\n`client.calendarConnection.updateTarget(connectionId: string, targetId: string, allDayEventsBlock?: boolean, bufferAfterMinutes?: number, bufferBeforeMinutes?: number, durationMinutes?: number, horizonDays?: number, hours?: { endMinute: number; startMinute: number; weekday: number; }[], minNoticeMinutes?: number, name?: string, slotIntervalMinutes?: number): { data: object; }`\n\n**put** `/v1/connections/calendar/{connectionId}/targets/{targetId}`\n\nChanges what agents ALREADY PUBLISHED against this target book, with no new tool version, the same thing editing a Cal.com event type on cal.com does. `hours` replaces the whole week when present, because a rota is described as a week and a partial update of one window has no meaning anybody would expect. The calendar cannot be changed: it is the target’s identity for the booking ledger, so moving it would orphan every appointment made on the old one.\n\n### Parameters\n\n- `connectionId: string`\n\n- `targetId: string`\n\n- `allDayEventsBlock?: boolean`\n Whether an all-day event closes the day. Defaults to true, because a calendar marks all-day events free unless their creator says otherwise and a public holiday entered as one would otherwise be bookable.\n\n- `bufferAfterMinutes?: number`\n\n- `bufferBeforeMinutes?: number`\n Dead time before an appointment, counted as busy when a slot is offered. Defaults to 0.\n\n- `durationMinutes?: number`\n\n- `horizonDays?: number`\n How far ahead appointments may be made. Defaults to 30.\n\n- `hours?: { endMinute: number; startMinute: number; weekday: number; }[]`\n The windows of the week appointments are offered in. Omit to adopt Monday to Friday, 09:00 to 17:00. A target with no windows offers nothing at all, which reads to a caller as a permanently full diary.\n\n- `minNoticeMinutes?: number`\n How soon from now an appointment may be made. Defaults to 120.\n\n- `name?: string`\n Unique within the connection, and how a config file refers to this target. Letters, digits, spaces, _ or -.\n\n- `slotIntervalMinutes?: number`\n The grid slots are offered on. Defaults to the duration, which gives back-to-back appointments.\n\n### Returns\n\n- `{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; }; }; }`\n\n - `data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: { endMinute: number; startMinute: number; weekday: number; }[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; }; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.calendarConnection.updateTarget('targetId', {\n connectionId: 'connectionId',\n});\n\nconsole.log(response);\n```",
5423
+ response: "{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; } | { goHighLevelCalendar: string; provider: 'GO_HIGH_LEVEL'; durationMinutes?: number; }; }; }",
5424
+ markdown: "## updateTarget\n\n`client.calendarConnection.updateTarget(connectionId: string, targetId: string, allDayEventsBlock?: boolean, bufferAfterMinutes?: number, bufferBeforeMinutes?: number, durationMinutes?: number, horizonDays?: number, hours?: { endMinute: number; startMinute: number; weekday: number; }[], minNoticeMinutes?: number, name?: string, slotIntervalMinutes?: number): { data: object; }`\n\n**put** `/v1/connections/calendar/{connectionId}/targets/{targetId}`\n\nChanges what agents ALREADY PUBLISHED against this target book, with no new tool version, the same thing editing a Cal.com event type on cal.com does. `hours` replaces the whole week when present, because a rota is described as a week and a partial update of one window has no meaning anybody would expect. The calendar cannot be changed: it is the target’s identity for the booking ledger, so moving it would orphan every appointment made on the old one.\n\n### Parameters\n\n- `connectionId: string`\n\n- `targetId: string`\n\n- `allDayEventsBlock?: boolean`\n Whether an all-day event closes the day. Defaults to true, because a calendar marks all-day events free unless their creator says otherwise and a public holiday entered as one would otherwise be bookable.\n\n- `bufferAfterMinutes?: number`\n\n- `bufferBeforeMinutes?: number`\n Dead time before an appointment, counted as busy when a slot is offered. Defaults to 0.\n\n- `durationMinutes?: number`\n\n- `horizonDays?: number`\n How far ahead appointments may be made. Defaults to 30.\n\n- `hours?: { endMinute: number; startMinute: number; weekday: number; }[]`\n The windows of the week appointments are offered in. Omit to adopt Monday to Friday, 09:00 to 17:00. A target with no windows offers nothing at all, which reads to a caller as a permanently full diary.\n\n- `minNoticeMinutes?: number`\n How soon from now an appointment may be made. Defaults to 120.\n\n- `name?: string`\n Unique within the connection, and how a config file refers to this target. Letters, digits, spaces, _ or -.\n\n- `slotIntervalMinutes?: number`\n The grid slots are offered on. Defaults to the duration, which gives back-to-back appointments.\n\n### Returns\n\n- `{ data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: object[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; } | { goHighLevelCalendar: string; provider: 'GO_HIGH_LEVEL'; durationMinutes?: number; }; }; }`\n\n - `data: { id: string; durationMinutes: number; durationOptions: number[]; isHidden: boolean; label: string; policy: { allDayEventsBlock: boolean; bufferAfterMinutes: number; bufferBeforeMinutes: number; durationMinutes: number; horizonDays: number; hours: { endMinute: number; startMinute: number; weekday: number; }[]; minNoticeMinutes: number; slotIntervalMinutes: number; }; requiresConfirmation: boolean; target: { eventTypeId: number; provider: 'CAL_COM'; } | { calendarId: string; provider: 'GOOGLE'; targetId: string; } | { eventTypeUri: string; provider: 'CALENDLY'; } | { goHighLevelCalendar: string; provider: 'GO_HIGH_LEVEL'; durationMinutes?: number; }; }`\n\n### Example\n\n```typescript\nimport Roark from '@roarkanalytics/sdk';\n\nconst client = new Roark();\n\nconst response = await client.calendarConnection.updateTarget('targetId', {\n connectionId: 'connectionId',\n});\n\nconsole.log(response);\n```",
5418
5425
  perLanguage: {
5419
5426
  typescript: {
5420
5427
  method: 'client.calendarConnection.updateTarget',