@roarkanalytics/sdk-mcp 6.2.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.4.0](https://github.com/roarkhq/mcp-roark-analytics/compare/v6.3.0...v6.4.0) (2026-11-19)
4
+
5
+
6
+ ### Features
7
+
8
+ * **mcp:** mcp update ([#305](https://github.com/roarkhq/mcp-roark-analytics/issues/305)) ([f2ef4fa](https://github.com/roarkhq/mcp-roark-analytics/commit/f2ef4fa095fa7b8b24c35f57f17756170f705fd0))
9
+
10
+ ## [6.3.0](https://github.com/roarkhq/mcp-roark-analytics/compare/v6.2.0...v6.3.0) (2026-11-19)
11
+
12
+
13
+ ### Features
14
+
15
+ * **mcp:** mcp update ([#303](https://github.com/roarkhq/mcp-roark-analytics/issues/303)) ([8942d4f](https://github.com/roarkhq/mcp-roark-analytics/commit/8942d4fe4defd6ba5c0eedc57a24535fab80250e))
16
+
3
17
  ## [6.2.0](https://github.com/roarkhq/mcp-roark-analytics/compare/v6.1.1...v6.2.0) (2026-11-19)
4
18
 
5
19
 
@@ -1,10 +1,10 @@
1
- export declare const MCP_SERVER_VERSION = "6.2.0";
1
+ export declare const MCP_SERVER_VERSION = "6.4.0";
2
2
  /**
3
3
  * Sent on every request the server's SDK clients make, including the sandbox that
4
4
  * runs model-written code. The SDK's user agent is the same for every program built
5
5
  * on it, so this is how the API tells MCP traffic from direct SDK use.
6
6
  */
7
7
  export declare const MCP_CLIENT_HEADERS: {
8
- readonly 'X-Roark-Client': "mcp/6.2.0";
8
+ readonly 'X-Roark-Client': "mcp/6.4.0";
9
9
  };
10
10
  //# sourceMappingURL=client-headers.d.mts.map
@@ -1,10 +1,10 @@
1
- export declare const MCP_SERVER_VERSION = "6.2.0";
1
+ export declare const MCP_SERVER_VERSION = "6.4.0";
2
2
  /**
3
3
  * Sent on every request the server's SDK clients make, including the sandbox that
4
4
  * runs model-written code. The SDK's user agent is the same for every program built
5
5
  * on it, so this is how the API tells MCP traffic from direct SDK use.
6
6
  */
7
7
  export declare const MCP_CLIENT_HEADERS: {
8
- readonly 'X-Roark-Client': "mcp/6.2.0";
8
+ readonly 'X-Roark-Client': "mcp/6.4.0";
9
9
  };
10
10
  //# sourceMappingURL=client-headers.d.ts.map
package/client-headers.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MCP_CLIENT_HEADERS = exports.MCP_SERVER_VERSION = void 0;
4
4
  // Kept in step with package.json by scripts/sync-version.cjs, which `pnpm build` runs,
5
5
  // alongside the literal src/server.ts reports in the MCP handshake.
6
- exports.MCP_SERVER_VERSION = '6.2.0'; // x-release-please-version
6
+ exports.MCP_SERVER_VERSION = '6.4.0'; // x-release-please-version
7
7
  /**
8
8
  * Sent on every request the server's SDK clients make, including the sandbox that
9
9
  * runs model-written code. The SDK's user agent is the same for every program built
@@ -1,6 +1,6 @@
1
1
  // Kept in step with package.json by scripts/sync-version.cjs, which `pnpm build` runs,
2
2
  // alongside the literal src/server.ts reports in the MCP handshake.
3
- export const MCP_SERVER_VERSION = '6.2.0'; // x-release-please-version
3
+ export const MCP_SERVER_VERSION = '6.4.0'; // x-release-please-version
4
4
  /**
5
5
  * Sent on every request the server's SDK clients make, including the sandbox that
6
6
  * runs model-written code. The SDK's user agent is the same for every program built
@@ -1 +1 @@
1
- {"version":3,"file":"local-docs-search.d.mts","sourceRoot":"","sources":["src/local-docs-search.ts"],"names":[],"mappings":"AA+CA,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;CAC/C,CAAC;AAk3OF;;;;GAIG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,WAAW,CAAiC;IACpD,OAAO,CAAC,UAAU,CAAiC;IAEnD,OAAO;WAKM,MAAM,CAAC,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,eAAe,CAAC;IAY1E,MAAM,CAAC,KAAK,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,YAAY;IA2EhB,OAAO,CAAC,YAAY;YAiBN,iBAAiB;IA4C/B,OAAO,CAAC,UAAU;CAgBnB"}
1
+ {"version":3,"file":"local-docs-search.d.mts","sourceRoot":"","sources":["src/local-docs-search.ts"],"names":[],"mappings":"AA+CA,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;CAC/C,CAAC;AAy3OF;;;;GAIG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,WAAW,CAAiC;IACpD,OAAO,CAAC,UAAU,CAAiC;IAEnD,OAAO;WAKM,MAAM,CAAC,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,eAAe,CAAC;IAY1E,MAAM,CAAC,KAAK,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,YAAY;IA2EhB,OAAO,CAAC,YAAY;YAiBN,iBAAiB;IA4C/B,OAAO,CAAC,UAAU;CAgBnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"local-docs-search.d.ts","sourceRoot":"","sources":["src/local-docs-search.ts"],"names":[],"mappings":"AA+CA,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;CAC/C,CAAC;AAk3OF;;;;GAIG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,WAAW,CAAiC;IACpD,OAAO,CAAC,UAAU,CAAiC;IAEnD,OAAO;WAKM,MAAM,CAAC,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,eAAe,CAAC;IAY1E,MAAM,CAAC,KAAK,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,YAAY;IA2EhB,OAAO,CAAC,YAAY;YAiBN,iBAAiB;IA4C/B,OAAO,CAAC,UAAU;CAgBnB"}
1
+ {"version":3,"file":"local-docs-search.d.ts","sourceRoot":"","sources":["src/local-docs-search.ts"],"names":[],"mappings":"AA+CA,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;CAC/C,CAAC;AAy3OF;;;;GAIG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,WAAW,CAAiC;IACpD,OAAO,CAAC,UAAU,CAAiC;IAEnD,OAAO;WAKM,MAAM,CAAC,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,eAAe,CAAC;IAY1E,MAAM,CAAC,KAAK,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,YAAY;IA2EhB,OAAO,CAAC,YAAY;YAiBN,iBAAiB;IA4C/B,OAAO,CAAC,UAAU;CAgBnB"}
@@ -4884,7 +4884,7 @@ const EMBEDDED_METHODS = [
4884
4884
  qualified: 'client.tool.list',
4885
4885
  params: ['agentId?: string;', "includeBuiltIn?: 'true' | 'false';"],
4886
4886
  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; }[]; }",
4887
- 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```",
4887
+ 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```",
4888
4888
  perLanguage: {
4889
4889
  typescript: {
4890
4890
  method: 'client.tool.list',
@@ -4909,7 +4909,7 @@ const EMBEDDED_METHODS = [
4909
4909
  qualified: 'client.tool.getByID',
4910
4910
  params: ['toolId: string;'],
4911
4911
  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; }; }",
4912
- 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```",
4912
+ 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```",
4913
4913
  perLanguage: {
4914
4914
  typescript: {
4915
4915
  method: 'client.tool.getByID',
@@ -4936,7 +4936,7 @@ const EMBEDDED_METHODS = [
4936
4936
  'description: string;',
4937
4937
  'name: string;',
4938
4938
  'agentId?: string;',
4939
- "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; };",
4939
+ "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; };",
4940
4940
  'expectedResult?: string;',
4941
4941
  "inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[];",
4942
4942
  'invocationCriteria?: string;',
@@ -4944,7 +4944,7 @@ const EMBEDDED_METHODS = [
4944
4944
  "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[]; };",
4945
4945
  ],
4946
4946
  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; }; }",
4947
- 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```",
4947
+ 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```",
4948
4948
  perLanguage: {
4949
4949
  typescript: {
4950
4950
  method: 'client.tool.create',
@@ -4972,7 +4972,7 @@ const EMBEDDED_METHODS = [
4972
4972
  'description: string;',
4973
4973
  'name: string;',
4974
4974
  'agentId?: string;',
4975
- "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; };",
4975
+ "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; };",
4976
4976
  'expectedResult?: string;',
4977
4977
  "inputs?: { name: string; type: 'string' | 'number' | 'boolean'; description?: string; required?: boolean; }[];",
4978
4978
  'invocationCriteria?: string;',
@@ -4980,7 +4980,7 @@ const EMBEDDED_METHODS = [
4980
4980
  "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[]; };",
4981
4981
  ],
4982
4982
  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; }; }",
4983
- 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```",
4983
+ 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```",
4984
4984
  perLanguage: {
4985
4985
  typescript: {
4986
4986
  method: 'client.tool.update',
@@ -5142,9 +5142,9 @@ const EMBEDDED_METHODS = [
5142
5142
  description: 'Returns 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.',
5143
5143
  stainlessPath: '(resource) calendarConnection > (method) list',
5144
5144
  qualified: 'client.calendarConnection.list',
5145
- params: ["provider?: 'CAL_COM' | 'GOOGLE' | 'CALENDLY';"],
5146
- 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'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }[]; pagination: { hasMore: boolean; nextCursor: string; total: number; }; }",
5147
- markdown: "## list\n\n`client.calendarConnection.list(provider?: 'CAL_COM' | 'GOOGLE' | 'CALENDLY'): { 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'`\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'; 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'; 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```",
5145
+ params: ["provider?: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL';"],
5146
+ 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; }; }",
5147
+ 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```",
5148
5148
  perLanguage: {
5149
5149
  typescript: {
5150
5150
  method: 'client.calendarConnection.list',
@@ -5168,8 +5168,8 @@ const EMBEDDED_METHODS = [
5168
5168
  stainlessPath: '(resource) calendarConnection > (method) getById',
5169
5169
  qualified: 'client.calendarConnection.getByID',
5170
5170
  params: ['connectionId: string;'],
5171
- 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'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }; }",
5172
- markdown: "## getById\n\n`client.calendarConnection.getByID(connectionId: string): { data: object; }`\n\n**get** `/v1/connections/calendar/{connectionId}`\n\nReturns one calendar connection. The stored credential is never included.\n\n### Parameters\n\n- `connectionId: string`\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'; 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'; 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 response = await client.calendarConnection.getByID('connectionId');\n\nconsole.log(response);\n```",
5171
+ 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; }; }",
5172
+ markdown: "## getById\n\n`client.calendarConnection.getByID(connectionId: string): { data: object; }`\n\n**get** `/v1/connections/calendar/{connectionId}`\n\nReturns one calendar connection. The stored credential is never included.\n\n### Parameters\n\n- `connectionId: string`\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 response = await client.calendarConnection.getByID('connectionId');\n\nconsole.log(response);\n```",
5173
5173
  perLanguage: {
5174
5174
  typescript: {
5175
5175
  method: 'client.calendarConnection.getByID',
@@ -5195,11 +5195,12 @@ const EMBEDDED_METHODS = [
5195
5195
  params: [
5196
5196
  'apiKey: string;',
5197
5197
  'label: string;',
5198
- "provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY';",
5198
+ "provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY' | 'GO_HIGH_LEVEL';",
5199
+ 'goHighLevelLocation?: string;',
5199
5200
  'timezone?: string;',
5200
5201
  ],
5201
- 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'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }; }",
5202
- markdown: "## create\n\n`client.calendarConnection.create(apiKey: string, label: string, provider: 'CAL_COM' | 'GOOGLE' | 'CALENDLY', 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'`\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'; 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'; 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```",
5202
+ 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; }; }",
5203
+ 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```",
5203
5204
  perLanguage: {
5204
5205
  typescript: {
5205
5206
  method: 'client.calendarConnection.create',
@@ -5277,9 +5278,15 @@ const EMBEDDED_METHODS = [
5277
5278
  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.',
5278
5279
  stainlessPath: '(resource) calendarConnection > (method) update',
5279
5280
  qualified: 'client.calendarConnection.update',
5280
- params: ['connectionId: string;', 'apiKey?: string;', 'label?: string;', 'timezone?: string;'],
5281
- 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'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }; }",
5282
- 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'; 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'; 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```",
5281
+ params: [
5282
+ 'connectionId: string;',
5283
+ 'apiKey?: string;',
5284
+ 'goHighLevelLocation?: string;',
5285
+ 'label?: string;',
5286
+ 'timezone?: string;',
5287
+ ],
5288
+ 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; }; }",
5289
+ 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```",
5283
5290
  perLanguage: {
5284
5291
  typescript: {
5285
5292
  method: 'client.calendarConnection.update',
@@ -5303,8 +5310,8 @@ const EMBEDDED_METHODS = [
5303
5310
  stainlessPath: '(resource) calendarConnection > (method) check',
5304
5311
  qualified: 'client.calendarConnection.check',
5305
5312
  params: ['connectionId: string;'],
5306
- 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'; scopes: string[]; status: 'ACTIVE' | 'INVALID_CREDENTIALS' | 'ERROR'; statusMessage: string; timezone: string; updatedAt: string; }; }",
5307
- markdown: "## check\n\n`client.calendarConnection.check(connectionId: string): { data: object; }`\n\n**post** `/v1/connections/calendar/{connectionId}/check`\n\nRe-verifies the stored credential against the provider and records the result on the connection. A credential the provider rejects sets `status` to INVALID_CREDENTIALS. A provider outage is a 500 and leaves the status untouched: being unable to reach the provider is not evidence that the customer’s credential is bad.\n\n### Parameters\n\n- `connectionId: string`\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'; 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'; 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 response = await client.calendarConnection.check('connectionId');\n\nconsole.log(response);\n```",
5313
+ 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; }; }",
5314
+ markdown: "## check\n\n`client.calendarConnection.check(connectionId: string): { data: object; }`\n\n**post** `/v1/connections/calendar/{connectionId}/check`\n\nRe-verifies the stored credential against the provider and records the result on the connection. A credential the provider rejects sets `status` to INVALID_CREDENTIALS. A provider outage is a 500 and leaves the status untouched: being unable to reach the provider is not evidence that the customer’s credential is bad.\n\n### Parameters\n\n- `connectionId: string`\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 response = await client.calendarConnection.check('connectionId');\n\nconsole.log(response);\n```",
5308
5315
  perLanguage: {
5309
5316
  typescript: {
5310
5317
  method: 'client.calendarConnection.check',
@@ -5328,8 +5335,8 @@ const EMBEDDED_METHODS = [
5328
5335
  stainlessPath: '(resource) calendarConnection > (method) listTargets',
5329
5336
  qualified: 'client.calendarConnection.listTargets',
5330
5337
  params: ['connectionId: string;'],
5331
- 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'; }; }[]; }",
5332
- 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```",
5338
+ 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; }; }[]; }",
5339
+ 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```",
5333
5340
  perLanguage: {
5334
5341
  typescript: {
5335
5342
  method: 'client.calendarConnection.listTargets',
@@ -5353,8 +5360,8 @@ const EMBEDDED_METHODS = [
5353
5360
  stainlessPath: '(resource) calendarConnection > (method) getTarget',
5354
5361
  qualified: 'client.calendarConnection.getTarget',
5355
5362
  params: ['connectionId: string;', 'targetId: string;'],
5356
- 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'; }; }; }",
5357
- 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```",
5363
+ 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; }; }; }",
5364
+ 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```",
5358
5365
  perLanguage: {
5359
5366
  typescript: {
5360
5367
  method: 'client.calendarConnection.getTarget',
@@ -5415,8 +5422,8 @@ const EMBEDDED_METHODS = [
5415
5422
  'minNoticeMinutes?: number;',
5416
5423
  'slotIntervalMinutes?: number;',
5417
5424
  ],
5418
- 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'; }; }; }",
5419
- 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```",
5425
+ 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; }; }; }",
5426
+ 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```",
5420
5427
  perLanguage: {
5421
5428
  typescript: {
5422
5429
  method: 'client.calendarConnection.createTarget',
@@ -5452,8 +5459,8 @@ const EMBEDDED_METHODS = [
5452
5459
  'name?: string;',
5453
5460
  'slotIntervalMinutes?: number;',
5454
5461
  ],
5455
- 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'; }; }; }",
5456
- 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```",
5462
+ 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; }; }; }",
5463
+ 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```",
5457
5464
  perLanguage: {
5458
5465
  typescript: {
5459
5466
  method: 'client.calendarConnection.updateTarget',