@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.
- package/CHANGELOG.md +7 -0
- package/client-headers.d.mts +2 -2
- package/client-headers.d.ts +2 -2
- package/client-headers.js +1 -1
- package/client-headers.mjs +1 -1
- package/local-docs-search.d.mts.map +1 -1
- package/local-docs-search.d.ts.map +1 -1
- package/local-docs-search.js +25 -18
- package/local-docs-search.js.map +1 -1
- package/local-docs-search.mjs +25 -18
- package/local-docs-search.mjs.map +1 -1
- package/package.json +1 -1
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/client-headers.ts +1 -1
- package/src/local-docs-search.ts +25 -18
- package/src/server.ts +1 -1
package/src/local-docs-search.ts
CHANGED
|
@@ -5862,7 +5862,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
5862
5862
|
response:
|
|
5863
5863
|
"{ 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; }[]; }",
|
|
5864
5864
|
markdown:
|
|
5865
|
-
"## 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```",
|
|
5865
|
+
"## 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```",
|
|
5866
5866
|
perLanguage: {
|
|
5867
5867
|
typescript: {
|
|
5868
5868
|
method: 'client.tool.list',
|
|
@@ -5892,7 +5892,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
5892
5892
|
response:
|
|
5893
5893
|
"{ 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; }; }",
|
|
5894
5894
|
markdown:
|
|
5895
|
-
"## 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```",
|
|
5895
|
+
"## 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```",
|
|
5896
5896
|
perLanguage: {
|
|
5897
5897
|
typescript: {
|
|
5898
5898
|
method: 'client.tool.getByID',
|
|
@@ -5923,7 +5923,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
5923
5923
|
'description: string;',
|
|
5924
5924
|
'name: string;',
|
|
5925
5925
|
'agentId?: string;',
|
|
5926
|
-
"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; };",
|
|
5926
|
+
"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; };",
|
|
5927
5927
|
'expectedResult?: string;',
|
|
5928
5928
|
"inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[];",
|
|
5929
5929
|
'invocationCriteria?: string;',
|
|
@@ -5933,7 +5933,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
5933
5933
|
response:
|
|
5934
5934
|
"{ 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; }; }",
|
|
5935
5935
|
markdown:
|
|
5936
|
-
"## 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```",
|
|
5936
|
+
"## 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```",
|
|
5937
5937
|
perLanguage: {
|
|
5938
5938
|
typescript: {
|
|
5939
5939
|
method: 'client.tool.create',
|
|
@@ -5965,7 +5965,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
5965
5965
|
'description: string;',
|
|
5966
5966
|
'name: string;',
|
|
5967
5967
|
'agentId?: string;',
|
|
5968
|
-
"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; };",
|
|
5968
|
+
"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; };",
|
|
5969
5969
|
'expectedResult?: string;',
|
|
5970
5970
|
"inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[];",
|
|
5971
5971
|
'invocationCriteria?: string;',
|
|
@@ -5975,7 +5975,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
5975
5975
|
response:
|
|
5976
5976
|
"{ 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; }; }",
|
|
5977
5977
|
markdown:
|
|
5978
|
-
"## 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```",
|
|
5978
|
+
"## 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```",
|
|
5979
5979
|
perLanguage: {
|
|
5980
5980
|
typescript: {
|
|
5981
5981
|
method: 'client.tool.update',
|
|
@@ -6170,7 +6170,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
6170
6170
|
response:
|
|
6171
6171
|
"{ 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; }; }",
|
|
6172
6172
|
markdown:
|
|
6173
|
-
"## 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
|
|
6173
|
+
"## 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```",
|
|
6174
6174
|
perLanguage: {
|
|
6175
6175
|
typescript: {
|
|
6176
6176
|
method: 'client.calendarConnection.list',
|
|
@@ -6231,12 +6231,13 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
6231
6231
|
'apiKey: string;',
|
|
6232
6232
|
'label: string;',
|
|
6233
6233
|
"provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL';",
|
|
6234
|
+
'goHighLevelLocation?: string;',
|
|
6234
6235
|
'timezone?: string;',
|
|
6235
6236
|
],
|
|
6236
6237
|
response:
|
|
6237
6238
|
"{ 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; }; }",
|
|
6238
6239
|
markdown:
|
|
6239
|
-
"## 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
|
|
6240
|
+
"## 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```",
|
|
6240
6241
|
perLanguage: {
|
|
6241
6242
|
typescript: {
|
|
6242
6243
|
method: 'client.calendarConnection.create',
|
|
@@ -6328,11 +6329,17 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
6328
6329
|
'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.',
|
|
6329
6330
|
stainlessPath: '(resource) calendarConnection > (method) update',
|
|
6330
6331
|
qualified: 'client.calendarConnection.update',
|
|
6331
|
-
params: [
|
|
6332
|
+
params: [
|
|
6333
|
+
'connectionId: string;',
|
|
6334
|
+
'apiKey?: string;',
|
|
6335
|
+
'goHighLevelLocation?: string;',
|
|
6336
|
+
'label?: string;',
|
|
6337
|
+
'timezone?: string;',
|
|
6338
|
+
],
|
|
6332
6339
|
response:
|
|
6333
6340
|
"{ 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; }; }",
|
|
6334
6341
|
markdown:
|
|
6335
|
-
"## 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```",
|
|
6342
|
+
"## 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```",
|
|
6336
6343
|
perLanguage: {
|
|
6337
6344
|
typescript: {
|
|
6338
6345
|
method: 'client.calendarConnection.update',
|
|
@@ -6392,9 +6399,9 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
6392
6399
|
qualified: 'client.calendarConnection.listTargets',
|
|
6393
6400
|
params: ['connectionId: string;'],
|
|
6394
6401
|
response:
|
|
6395
|
-
"{ 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'; }; }[]; }",
|
|
6402
|
+
"{ 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; }; }[]; }",
|
|
6396
6403
|
markdown:
|
|
6397
|
-
"## 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```",
|
|
6404
|
+
"## 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```",
|
|
6398
6405
|
perLanguage: {
|
|
6399
6406
|
typescript: {
|
|
6400
6407
|
method: 'client.calendarConnection.listTargets',
|
|
@@ -6423,9 +6430,9 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
6423
6430
|
qualified: 'client.calendarConnection.getTarget',
|
|
6424
6431
|
params: ['connectionId: string;', 'targetId: string;'],
|
|
6425
6432
|
response:
|
|
6426
|
-
"{ 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'; }; }; }",
|
|
6433
|
+
"{ 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; }; }; }",
|
|
6427
6434
|
markdown:
|
|
6428
|
-
"## 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```",
|
|
6435
|
+
"## 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```",
|
|
6429
6436
|
perLanguage: {
|
|
6430
6437
|
typescript: {
|
|
6431
6438
|
method: 'client.calendarConnection.getTarget',
|
|
@@ -6497,9 +6504,9 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
6497
6504
|
'slotIntervalMinutes?: number;',
|
|
6498
6505
|
],
|
|
6499
6506
|
response:
|
|
6500
|
-
"{ 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'; }; }; }",
|
|
6507
|
+
"{ 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; }; }; }",
|
|
6501
6508
|
markdown:
|
|
6502
|
-
"## 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```",
|
|
6509
|
+
"## 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```",
|
|
6503
6510
|
perLanguage: {
|
|
6504
6511
|
typescript: {
|
|
6505
6512
|
method: 'client.calendarConnection.createTarget',
|
|
@@ -6540,9 +6547,9 @@ const EMBEDDED_METHODS: MethodEntry[] = [
|
|
|
6540
6547
|
'slotIntervalMinutes?: number;',
|
|
6541
6548
|
],
|
|
6542
6549
|
response:
|
|
6543
|
-
"{ 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'; }; }; }",
|
|
6550
|
+
"{ 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; }; }; }",
|
|
6544
6551
|
markdown:
|
|
6545
|
-
"## 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```",
|
|
6552
|
+
"## 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```",
|
|
6546
6553
|
perLanguage: {
|
|
6547
6554
|
typescript: {
|
|
6548
6555
|
method: 'client.calendarConnection.updateTarget',
|
package/src/server.ts
CHANGED
|
@@ -41,7 +41,7 @@ export const newMcpServer = async ({
|
|
|
41
41
|
{ src: 'https://roark.ai/icon.png', mimeType: 'image/png', sizes: ['512x512'] },
|
|
42
42
|
],
|
|
43
43
|
// A literal, not MCP_SERVER_VERSION: publish.yml checks dist/server.js for it.
|
|
44
|
-
version: '6.
|
|
44
|
+
version: '6.4.0', // x-release-please-version
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
// Directory mode does not fetch instructions. The hosted document tells a
|