@epilot/sdk 2.10.0 → 2.10.2

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.
Files changed (194) hide show
  1. package/definitions/ai-agents-runtime.json +1 -1
  2. package/definitions/ai-agents.json +971 -98
  3. package/definitions/customer-portal-runtime.json +1 -1
  4. package/definitions/customer-portal.json +1238 -124
  5. package/definitions/file-runtime.json +1 -1
  6. package/definitions/file.json +291 -15
  7. package/definitions/targeting-runtime.json +1 -1
  8. package/definitions/targeting.json +7 -2
  9. package/definitions/workflow-runtime.json +1 -1
  10. package/definitions/workflow.json +445 -60
  11. package/dist/ai-agents-D6C5TXLD.cjs +7 -0
  12. package/dist/ai-agents-Y6PH53PH.js +7 -0
  13. package/dist/{ai-agents-runtime-25YRUJHI.js → ai-agents-runtime-EA23HCCP.js} +1 -1
  14. package/dist/{ai-agents-runtime-TILIO3UM.cjs → ai-agents-runtime-WZ3EI3NH.cjs} +2 -2
  15. package/dist/{ai-agents.d-CC5IjXrs.d.cts → ai-agents.d-D-7bTH-9.d.cts} +506 -5
  16. package/dist/{ai-agents.d-CC5IjXrs.d.ts → ai-agents.d-D-7bTH-9.d.ts} +506 -5
  17. package/dist/apis/access-token.cjs +6 -6
  18. package/dist/apis/access-token.js +1 -1
  19. package/dist/apis/address-suggestions.cjs +6 -6
  20. package/dist/apis/address-suggestions.js +1 -1
  21. package/dist/apis/address.cjs +6 -6
  22. package/dist/apis/address.js +1 -1
  23. package/dist/apis/ai-agents.cjs +8 -8
  24. package/dist/apis/ai-agents.d.cts +2 -2
  25. package/dist/apis/ai-agents.d.ts +2 -2
  26. package/dist/apis/ai-agents.js +2 -2
  27. package/dist/apis/app.cjs +6 -6
  28. package/dist/apis/app.js +1 -1
  29. package/dist/apis/audit-logs.cjs +6 -6
  30. package/dist/apis/audit-logs.js +1 -1
  31. package/dist/apis/automation.cjs +6 -6
  32. package/dist/apis/automation.js +1 -1
  33. package/dist/apis/billing.cjs +6 -6
  34. package/dist/apis/billing.js +1 -1
  35. package/dist/apis/blueprint-manifest.cjs +6 -6
  36. package/dist/apis/blueprint-manifest.js +1 -1
  37. package/dist/apis/calendar.cjs +6 -6
  38. package/dist/apis/calendar.js +1 -1
  39. package/dist/apis/configuration-hub.cjs +6 -6
  40. package/dist/apis/configuration-hub.js +1 -1
  41. package/dist/apis/consent.cjs +6 -6
  42. package/dist/apis/consent.js +1 -1
  43. package/dist/apis/customer-portal.cjs +8 -8
  44. package/dist/apis/customer-portal.d.cts +2 -2
  45. package/dist/apis/customer-portal.d.ts +2 -2
  46. package/dist/apis/customer-portal.js +2 -2
  47. package/dist/apis/dashboard.cjs +6 -6
  48. package/dist/apis/dashboard.js +1 -1
  49. package/dist/apis/data-governance.cjs +6 -6
  50. package/dist/apis/data-governance.js +1 -1
  51. package/dist/apis/deduplication.cjs +6 -6
  52. package/dist/apis/deduplication.js +1 -1
  53. package/dist/apis/design.cjs +6 -6
  54. package/dist/apis/design.js +1 -1
  55. package/dist/apis/document.cjs +6 -6
  56. package/dist/apis/document.js +1 -1
  57. package/dist/apis/email-settings.cjs +6 -6
  58. package/dist/apis/email-settings.js +1 -1
  59. package/dist/apis/email-template.cjs +6 -6
  60. package/dist/apis/email-template.js +1 -1
  61. package/dist/apis/entity-mapping.cjs +6 -6
  62. package/dist/apis/entity-mapping.js +1 -1
  63. package/dist/apis/entity.cjs +6 -6
  64. package/dist/apis/entity.js +1 -1
  65. package/dist/apis/environments.cjs +6 -6
  66. package/dist/apis/environments.js +1 -1
  67. package/dist/apis/event-catalog.cjs +6 -6
  68. package/dist/apis/event-catalog.js +1 -1
  69. package/dist/apis/file.cjs +8 -8
  70. package/dist/apis/file.d.cts +2 -2
  71. package/dist/apis/file.d.ts +2 -2
  72. package/dist/apis/file.js +2 -2
  73. package/dist/apis/iban.cjs +6 -6
  74. package/dist/apis/iban.js +1 -1
  75. package/dist/apis/integration-toolkit.cjs +6 -6
  76. package/dist/apis/integration-toolkit.js +1 -1
  77. package/dist/apis/journey.cjs +6 -6
  78. package/dist/apis/journey.js +1 -1
  79. package/dist/apis/kanban.cjs +6 -6
  80. package/dist/apis/kanban.js +1 -1
  81. package/dist/apis/message.cjs +6 -6
  82. package/dist/apis/message.js +1 -1
  83. package/dist/apis/metering.cjs +6 -6
  84. package/dist/apis/metering.js +1 -1
  85. package/dist/apis/notes.cjs +6 -6
  86. package/dist/apis/notes.js +1 -1
  87. package/dist/apis/notification.cjs +6 -6
  88. package/dist/apis/notification.js +1 -1
  89. package/dist/apis/organization.cjs +6 -6
  90. package/dist/apis/organization.js +1 -1
  91. package/dist/apis/partner-directory.cjs +6 -6
  92. package/dist/apis/partner-directory.js +1 -1
  93. package/dist/apis/permissions.cjs +6 -6
  94. package/dist/apis/permissions.js +1 -1
  95. package/dist/apis/pricing-tier.cjs +6 -6
  96. package/dist/apis/pricing-tier.js +1 -1
  97. package/dist/apis/pricing.cjs +6 -6
  98. package/dist/apis/pricing.js +1 -1
  99. package/dist/apis/purpose.cjs +6 -6
  100. package/dist/apis/purpose.js +1 -1
  101. package/dist/apis/query.cjs +6 -6
  102. package/dist/apis/query.js +1 -1
  103. package/dist/apis/sandbox.cjs +6 -6
  104. package/dist/apis/sandbox.js +1 -1
  105. package/dist/apis/sharing.cjs +6 -6
  106. package/dist/apis/sharing.js +1 -1
  107. package/dist/apis/snapshot.cjs +6 -6
  108. package/dist/apis/snapshot.js +1 -1
  109. package/dist/apis/submission.cjs +6 -6
  110. package/dist/apis/submission.js +1 -1
  111. package/dist/apis/target.cjs +6 -6
  112. package/dist/apis/target.js +1 -1
  113. package/dist/apis/targeting.cjs +8 -8
  114. package/dist/apis/targeting.d.cts +2 -2
  115. package/dist/apis/targeting.d.ts +2 -2
  116. package/dist/apis/targeting.js +2 -2
  117. package/dist/apis/template-variables.cjs +6 -6
  118. package/dist/apis/template-variables.js +1 -1
  119. package/dist/apis/user.cjs +6 -6
  120. package/dist/apis/user.js +1 -1
  121. package/dist/apis/validation-rules.cjs +6 -6
  122. package/dist/apis/validation-rules.js +1 -1
  123. package/dist/apis/webhooks.cjs +6 -6
  124. package/dist/apis/webhooks.js +1 -1
  125. package/dist/apis/workflow-definition.cjs +6 -6
  126. package/dist/apis/workflow-definition.js +1 -1
  127. package/dist/apis/workflow.cjs +8 -8
  128. package/dist/apis/workflow.d.cts +2 -2
  129. package/dist/apis/workflow.d.ts +2 -2
  130. package/dist/apis/workflow.js +2 -2
  131. package/dist/{chunk-KQKBSWGI.js → chunk-522LYPPW.js} +1 -1
  132. package/dist/{chunk-MCK2QUSD.cjs → chunk-7ILTRJDQ.cjs} +1 -1
  133. package/dist/chunk-BRWY3QHG.js +14 -0
  134. package/dist/chunk-G5KVG3RU.js +14 -0
  135. package/dist/{chunk-LSPXLT3A.js → chunk-H3NMCCSA.js} +1 -1
  136. package/dist/chunk-JBPITLKN.cjs +14 -0
  137. package/dist/chunk-LNLUCLPL.cjs +14 -0
  138. package/dist/chunk-LSMVZMBY.js +14 -0
  139. package/dist/{chunk-XH5F3S6Y.js → chunk-O6DUKVXV.js} +10 -10
  140. package/dist/{chunk-QNZPOA54.cjs → chunk-PM25LLET.cjs} +1 -1
  141. package/dist/{chunk-OJGUX5TG.cjs → chunk-WK3YGGRO.cjs} +10 -10
  142. package/dist/chunk-YEBEA6XU.cjs +14 -0
  143. package/dist/customer-portal-MY3GZVUL.cjs +7 -0
  144. package/dist/customer-portal-YSODD3RC.js +7 -0
  145. package/dist/{customer-portal-runtime-TDHV2YVY.js → customer-portal-runtime-C6ZIKX2V.js} +1 -1
  146. package/dist/{customer-portal-runtime-HA6CPWB4.cjs → customer-portal-runtime-M7O3RDJ5.cjs} +2 -2
  147. package/dist/{customer-portal.d-BRwiQehb.d.cts → customer-portal.d-Bx5_n5UL.d.cts} +827 -8
  148. package/dist/{customer-portal.d-BRwiQehb.d.ts → customer-portal.d-Bx5_n5UL.d.ts} +827 -8
  149. package/dist/file-7CQXDQ3I.cjs +7 -0
  150. package/dist/file-O6ZD3HOU.js +7 -0
  151. package/dist/file-runtime-HYLQTQBX.cjs +5 -0
  152. package/dist/{file-runtime-DKGFS44O.js → file-runtime-VY6DJAQ3.js} +1 -1
  153. package/dist/{file.d-BjlMgTwj.d.cts → file.d-BN417xok.d.cts} +416 -23
  154. package/dist/{file.d-BjlMgTwj.d.ts → file.d-BN417xok.d.ts} +416 -23
  155. package/dist/index.cjs +18 -18
  156. package/dist/index.d.cts +5 -5
  157. package/dist/index.d.ts +5 -5
  158. package/dist/index.js +6 -6
  159. package/dist/js-yaml-DLCVPJ7G.js +0 -0
  160. package/dist/{targeting-WC62BBZN.cjs → targeting-4YMBBPDW.cjs} +1 -1
  161. package/dist/{targeting-X4Y2ODBT.js → targeting-VCENULF6.js} +1 -1
  162. package/dist/{targeting-runtime-D5YUPZQM.js → targeting-runtime-QI7322HB.js} +1 -1
  163. package/dist/{targeting-runtime-MLMOM7CK.cjs → targeting-runtime-X3DQ527N.cjs} +2 -2
  164. package/dist/{targeting.d-0rNF7ErD.d.cts → targeting.d-Bq3onSes.d.cts} +1 -1
  165. package/dist/{targeting.d-0rNF7ErD.d.ts → targeting.d-Bq3onSes.d.ts} +1 -1
  166. package/dist/workflow-7OU2YEEI.cjs +7 -0
  167. package/dist/workflow-IVKCWS44.js +7 -0
  168. package/dist/{workflow-runtime-DNTQDYPQ.js → workflow-runtime-L5HMFISV.js} +1 -1
  169. package/dist/{workflow-runtime-VKFESVFX.cjs → workflow-runtime-LMGACZP4.cjs} +2 -2
  170. package/dist/{workflow.d-CMSKt8oN.d.cts → workflow.d-eFv0ecBi.d.cts} +745 -81
  171. package/dist/{workflow.d-CMSKt8oN.d.ts → workflow.d-eFv0ecBi.d.ts} +745 -81
  172. package/docs/ai-agents.md +641 -23
  173. package/docs/customer-portal.md +700 -31
  174. package/docs/file.md +165 -25
  175. package/docs/targeting.md +1 -1
  176. package/docs/workflow.md +247 -47
  177. package/package.json +11 -12
  178. package/definitions/focus-pocus-runtime.json +0 -1
  179. package/definitions/focus-pocus.json +0 -757
  180. package/dist/ai-agents-IZWFEUSH.js +0 -7
  181. package/dist/ai-agents-PWHKNRCX.cjs +0 -7
  182. package/dist/chunk-4M5V6BIT.cjs +0 -14
  183. package/dist/chunk-5ZXGKLB6.cjs +0 -14
  184. package/dist/chunk-774ASAAH.js +0 -14
  185. package/dist/chunk-FARDEGPH.cjs +0 -14
  186. package/dist/chunk-JENQHXFI.js +0 -14
  187. package/dist/chunk-RDVFQOCQ.js +0 -14
  188. package/dist/customer-portal-4DXHY42V.js +0 -7
  189. package/dist/customer-portal-5OSGSYGF.cjs +0 -7
  190. package/dist/file-2MSILSPP.cjs +0 -7
  191. package/dist/file-JVFTT5RZ.js +0 -7
  192. package/dist/file-runtime-7AWKNQU6.cjs +0 -5
  193. package/dist/workflow-3WBD74WR.js +0 -7
  194. package/dist/workflow-WIUZ5TOX.cjs +0 -7
@@ -1,7 +0,0 @@
1
- import "./chunk-YPSWSI3M.js";
2
-
3
- // src/docs/ai-agents.json
4
- var ai_agents_default = '# AI Agents API - OpenAPI 3.0\n\n- **Base URL:** `https://ai-agents.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/ai-agents](https://docs.epilot.io/api/ai-agents)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.aiAgents.createAgent(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/ai-agents\'\n\nconst aiAgentsClient = getClient()\nauthorize(aiAgentsClient, () => \'<token>\')\nconst { data } = await aiAgentsClient.createAgent(...)\n```\n\n## Operations\n\n**Agents Configuration**\n- [`createAgent`](#createagent)\n- [`listAgents`](#listagents)\n- [`getAgentById`](#getagentbyid)\n- [`updateAgentById`](#updateagentbyid)\n- [`deleteAgentById`](#deleteagentbyid)\n\n**Agent Execution**\n- [`executeAgent`](#executeagent)\n- [`listExecutions`](#listexecutions)\n- [`getExecution`](#getexecution)\n- [`cancelExecution`](#cancelexecution)\n- [`getExecutionTrace`](#getexecutiontrace)\n- [`approveExecution`](#approveexecution)\n- [`rejectExecution`](#rejectexecution)\n\n**Schemas**\n- [`AgentId`](#agentid)\n- [`CreateAgentRequest`](#createagentrequest)\n- [`UpdateAgentRequest`](#updateagentrequest)\n- [`AgentDefinition`](#agentdefinition)\n- [`ListAgentsResponse`](#listagentsresponse)\n- [`ListExecutionsResponse`](#listexecutionsresponse)\n- [`ApproveExecutionRequest`](#approveexecutionrequest)\n- [`RejectExecutionRequest`](#rejectexecutionrequest)\n- [`ExecuteAgentRequest`](#executeagentrequest)\n- [`ExecutionResponse`](#executionresponse)\n- [`ExecutionTrace`](#executiontrace)\n- [`ExecutionIteration`](#executioniteration)\n- [`PendingAction`](#pendingaction)\n- [`ExecutionError`](#executionerror)\n- [`ExecutionMetrics`](#executionmetrics)\n- [`ToolPreview`](#toolpreview)\n- [`PreviewActionType`](#previewactiontype)\n- [`PreviewEntity`](#previewentity)\n- [`PreviewChange`](#previewchange)\n- [`PreviewValue`](#previewvalue)\n- [`ToolDefinition`](#tooldefinition)\n- [`SkillCategory`](#skillcategory)\n- [`AgentSource`](#agentsource)\n- [`SkillAvailability`](#skillavailability)\n- [`ExecutionContext`](#executioncontext)\n- [`ExecutionPattern`](#executionpattern)\n- [`ExecutionMode`](#executionmode)\n- [`ExecutionStatus`](#executionstatus)\n- [`ParameterType`](#parametertype)\n- [`InputParameterDefinition`](#inputparameterdefinition)\n- [`InputParametersSchema`](#inputparametersschema)\n- [`ModelConfig`](#modelconfig)\n- [`Error`](#error)\n\n### `createAgent`\n\nCreate Agent definition\n\n`POST /v1/agents`\n\n```ts\nconst { data } = await client.createAgent(\n null,\n {\n name: \'Email Reply Generator\',\n description: \'string\',\n category: \'message\',\n icon: \'mail-reply\',\n system_prompt: \'string\',\n tools: [\'entity.search\', \'message.draft\'],\n model_config: {\n model_id: \'anthropic.claude-3-5-sonnet-20241022-v2:0\',\n temperature: 0.7,\n max_tokens: 4096\n },\n max_iterations: 10,\n execution_pattern: \'direct\',\n execution_mode: \'automatic\',\n output_schema: {},\n input_parameters_schema: {\n type: \'object\',\n parameters: [\n {\n name: \'target_schema\',\n label: \'Target Schema\',\n type: \'entity-schema\',\n description: \'Entity type to create\'\n },\n {\n name: \'confidence_threshold\',\n label: \'Confidence Threshold\',\n type: \'number\',\n minimum: 0,\n maximum: 1,\n default: 0.8\n },\n /* ... 1 more */\n ],\n required: [\'target_schema\']\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "agent_id": "skill:email-categorizer",\n "org_id": "string",\n "name": "string",\n "description": "string",\n "category": "message",\n "icon": "string",\n "source": "system",\n "availability": ["flows", "copilot"],\n "allowed_entity_schemas": ["message"],\n "system_prompt": "string",\n "tools": ["string"],\n "model_config": {\n "model_id": "anthropic.claude-3-5-sonnet-20241022-v2:0",\n "temperature": 0.7,\n "max_tokens": 4096\n },\n "max_iterations": 0,\n "execution_pattern": "direct",\n "execution_mode": "automatic",\n "output_schema": {},\n "input_parameters_schema": {\n "type": "object",\n "parameters": [\n {\n "name": "target_schema",\n "label": "Target Schema",\n "type": "entity-schema",\n "description": "Entity type to create"\n },\n {\n "name": "confidence_threshold",\n "label": "Confidence Threshold",\n "type": "number",\n "minimum": 0,\n "maximum": 1,\n "default": 0.8\n }\n ],\n "required": ["target_schema"]\n },\n "version": 0,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `listAgents`\n\nList all agent configurations\n\n`GET /v1/agents`\n\n```ts\nconst { data } = await client.listAgents({\n source: \'example\',\n availability: \'example\',\n entity_schema: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "agents": [\n {\n "agent_id": "skill:email-categorizer",\n "org_id": "string",\n "name": "string",\n "description": "string",\n "category": "message",\n "icon": "string",\n "source": "system",\n "availability": ["flows", "copilot"],\n "allowed_entity_schemas": ["message"],\n "system_prompt": "string",\n "tools": ["string"],\n "model_config": {\n "model_id": "anthropic.claude-3-5-sonnet-20241022-v2:0",\n "temperature": 0.7,\n "max_tokens": 4096\n },\n "max_iterations": 0,\n "execution_pattern": "direct",\n "execution_mode": "automatic",\n "output_schema": {},\n "input_parameters_schema": {\n "type": "object",\n "parameters": [\n {\n "name": "target_schema",\n "label": "Target Schema",\n "type": "entity-schema",\n "description": "Entity type to create"\n },\n {\n "name": "confidence_threshold",\n "label": "Confidence Threshold",\n "type": "number",\n "minimum": 0,\n "maximum": 1,\n "default": 0.8\n }\n ],\n "required": ["target_schema"]\n },\n "version": 0,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": "string"\n }\n ],\n "next_cursor": "string"\n}\n```\n\n</details>\n\n---\n\n### `getAgentById`\n\nGet the agent configuration by ID\n\n`GET /v1/agents/{agent_id}`\n\n```ts\nconst { data } = await client.getAgentById({\n agent_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "agent_id": "skill:email-categorizer",\n "org_id": "string",\n "name": "string",\n "description": "string",\n "category": "message",\n "icon": "string",\n "source": "system",\n "availability": ["flows", "copilot"],\n "allowed_entity_schemas": ["message"],\n "system_prompt": "string",\n "tools": ["string"],\n "model_config": {\n "model_id": "anthropic.claude-3-5-sonnet-20241022-v2:0",\n "temperature": 0.7,\n "max_tokens": 4096\n },\n "max_iterations": 0,\n "execution_pattern": "direct",\n "execution_mode": "automatic",\n "output_schema": {},\n "input_parameters_schema": {\n "type": "object",\n "parameters": [\n {\n "name": "target_schema",\n "label": "Target Schema",\n "type": "entity-schema",\n "description": "Entity type to create"\n },\n {\n "name": "confidence_threshold",\n "label": "Confidence Threshold",\n "type": "number",\n "minimum": 0,\n "maximum": 1,\n "default": 0.8\n }\n ],\n "required": ["target_schema"]\n },\n "version": 0,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `updateAgentById`\n\nUpdate the agent configuration by ID\n\n`PUT /v1/agents/{agent_id}`\n\n```ts\nconst { data } = await client.updateAgentById(\n {\n agent_id: \'example\',\n },\n {\n name: \'string\',\n description: \'string\',\n category: \'message\',\n icon: \'string\',\n system_prompt: \'string\',\n tools: [\'string\'],\n model_config: {\n model_id: \'anthropic.claude-3-5-sonnet-20241022-v2:0\',\n temperature: 0.7,\n max_tokens: 4096\n },\n max_iterations: 1,\n execution_pattern: \'direct\',\n execution_mode: \'automatic\',\n output_schema: {},\n input_parameters_schema: {\n type: \'object\',\n parameters: [\n {\n name: \'target_schema\',\n label: \'Target Schema\',\n type: \'entity-schema\',\n description: \'Entity type to create\'\n },\n {\n name: \'confidence_threshold\',\n label: \'Confidence Threshold\',\n type: \'number\',\n minimum: 0,\n maximum: 1,\n default: 0.8\n },\n /* ... 1 more */\n ],\n required: [\'target_schema\']\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "agent_id": "skill:email-categorizer",\n "org_id": "string",\n "name": "string",\n "description": "string",\n "category": "message",\n "icon": "string",\n "source": "system",\n "availability": ["flows", "copilot"],\n "allowed_entity_schemas": ["message"],\n "system_prompt": "string",\n "tools": ["string"],\n "model_config": {\n "model_id": "anthropic.claude-3-5-sonnet-20241022-v2:0",\n "temperature": 0.7,\n "max_tokens": 4096\n },\n "max_iterations": 0,\n "execution_pattern": "direct",\n "execution_mode": "automatic",\n "output_schema": {},\n "input_parameters_schema": {\n "type": "object",\n "parameters": [\n {\n "name": "target_schema",\n "label": "Target Schema",\n "type": "entity-schema",\n "description": "Entity type to create"\n },\n {\n "name": "confidence_threshold",\n "label": "Confidence Threshold",\n "type": "number",\n "minimum": 0,\n "maximum": 1,\n "default": 0.8\n }\n ],\n "required": ["target_schema"]\n },\n "version": 0,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `deleteAgentById`\n\nDelete the agent configuration by ID\n\n`DELETE /v1/agents/{agent_id}`\n\n```ts\nconst { data } = await client.deleteAgentById({\n agent_id: \'example\',\n})\n```\n\n---\n\n### `executeAgent`\n\nExecute an agent\n\n`POST /v1/agents/{agent_id}/execute`\n\n```ts\nconst { data } = await client.executeAgent(\n {\n agent_id: \'example\',\n },\n {\n input: {\n entity_id: \'string\',\n entity_schema: \'string\',\n workflow_id: \'string\',\n workflow_execution_id: \'string\',\n task_id: \'string\',\n custom_data: {},\n flow_context: [\n {\n entity_id: \'string\',\n entity_schema: \'string\'\n }\n ]\n },\n parameters: {},\n execution_mode_override: \'automatic\',\n execution_context: \'flows\',\n callback_url: \'https://example.com/path\',\n timeout_ms: 30000\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "agent_id": "skill:email-categorizer",\n "agent_source": "system",\n "agent_name": "string",\n "execution_context": "flows",\n "org_id": "string",\n "status": "pending",\n "input": {},\n "parameters": {},\n "result": {\n "response": "string",\n "structured_output": {}\n },\n "error": {\n "code": "TIMEOUT",\n "message": "string",\n "details": {}\n },\n "pending_action": {\n "tool": "string",\n "input": {},\n "description": "string",\n "preview": {\n "action": {\n "type": "move",\n "verb": "Move Thread"\n },\n "source": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "target": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "changes": [\n {\n "field": "string",\n "label": "string",\n "from": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n },\n "to": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n }\n }\n ],\n "metadata": {},\n "summary": "This email discusses solar panel installation and should be handled by the Service team."\n }\n },\n "metrics": {\n "total_tokens": 0,\n "input_tokens": 0,\n "output_tokens": 0,\n "total_cost_usd": 0,\n "duration_ms": 0,\n "iteration_count": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `listExecutions`\n\nList executions\n\n`GET /v1/executions`\n\n```ts\nconst { data } = await client.listExecutions({\n agent_id: \'example\',\n status: \'example\',\n limit: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "executions": [\n {\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "agent_id": "skill:email-categorizer",\n "agent_source": "system",\n "agent_name": "string",\n "execution_context": "flows",\n "org_id": "string",\n "status": "pending",\n "input": {},\n "parameters": {},\n "result": {\n "response": "string",\n "structured_output": {}\n },\n "error": {\n "code": "TIMEOUT",\n "message": "string",\n "details": {}\n },\n "pending_action": {\n "tool": "string",\n "input": {},\n "description": "string",\n "preview": {\n "action": {\n "type": "move",\n "verb": "Move Thread"\n },\n "source": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "target": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "changes": [\n {\n "field": "string",\n "label": "string",\n "from": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n },\n "to": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n }\n }\n ],\n "metadata": {},\n "summary": "This email discusses solar panel installation and should be handled by the Service team."\n }\n },\n "metrics": {\n "total_tokens": 0,\n "input_tokens": 0,\n "output_tokens": 0,\n "total_cost_usd": 0,\n "duration_ms": 0,\n "iteration_count": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z"\n }\n ],\n "next_cursor": "string"\n}\n```\n\n</details>\n\n---\n\n### `getExecution`\n\nGet execution by ID\n\n`GET /v1/executions/{execution_id}`\n\n```ts\nconst { data } = await client.getExecution({\n execution_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "agent_id": "skill:email-categorizer",\n "agent_source": "system",\n "agent_name": "string",\n "execution_context": "flows",\n "org_id": "string",\n "status": "pending",\n "input": {},\n "parameters": {},\n "result": {\n "response": "string",\n "structured_output": {}\n },\n "error": {\n "code": "TIMEOUT",\n "message": "string",\n "details": {}\n },\n "pending_action": {\n "tool": "string",\n "input": {},\n "description": "string",\n "preview": {\n "action": {\n "type": "move",\n "verb": "Move Thread"\n },\n "source": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "target": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "changes": [\n {\n "field": "string",\n "label": "string",\n "from": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n },\n "to": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n }\n }\n ],\n "metadata": {},\n "summary": "This email discusses solar panel installation and should be handled by the Service team."\n }\n },\n "metrics": {\n "total_tokens": 0,\n "input_tokens": 0,\n "output_tokens": 0,\n "total_cost_usd": 0,\n "duration_ms": 0,\n "iteration_count": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `cancelExecution`\n\nCancel execution\n\n`DELETE /v1/executions/{execution_id}`\n\n```ts\nconst { data } = await client.cancelExecution({\n execution_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "agent_id": "skill:email-categorizer",\n "agent_source": "system",\n "agent_name": "string",\n "execution_context": "flows",\n "org_id": "string",\n "status": "pending",\n "input": {},\n "parameters": {},\n "result": {\n "response": "string",\n "structured_output": {}\n },\n "error": {\n "code": "TIMEOUT",\n "message": "string",\n "details": {}\n },\n "pending_action": {\n "tool": "string",\n "input": {},\n "description": "string",\n "preview": {\n "action": {\n "type": "move",\n "verb": "Move Thread"\n },\n "source": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "target": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "changes": [\n {\n "field": "string",\n "label": "string",\n "from": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n },\n "to": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n }\n }\n ],\n "metadata": {},\n "summary": "This email discusses solar panel installation and should be handled by the Service team."\n }\n },\n "metrics": {\n "total_tokens": 0,\n "input_tokens": 0,\n "output_tokens": 0,\n "total_cost_usd": 0,\n "duration_ms": 0,\n "iteration_count": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `getExecutionTrace`\n\nGet execution trace/iterations\n\n`GET /v1/executions/{execution_id}/trace`\n\n```ts\nconst { data } = await client.getExecutionTrace({\n execution_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "iterations": [\n {\n "iteration_index": 0,\n "thought": "string",\n "action": {\n "tool": "string",\n "input": {}\n },\n "observation": {},\n "timestamp": "1970-01-01T00:00:00.000Z",\n "tokens_used": 0,\n "latency_ms": 0\n }\n ],\n "total_iterations": 0\n}\n```\n\n</details>\n\n---\n\n### `approveExecution`\n\nApprove pending action\n\n`POST /v1/executions/{execution_id}/approve`\n\n```ts\nconst { data } = await client.approveExecution(\n {\n execution_id: \'example\',\n },\n {\n reason: \'string\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "agent_id": "skill:email-categorizer",\n "agent_source": "system",\n "agent_name": "string",\n "execution_context": "flows",\n "org_id": "string",\n "status": "pending",\n "input": {},\n "parameters": {},\n "result": {\n "response": "string",\n "structured_output": {}\n },\n "error": {\n "code": "TIMEOUT",\n "message": "string",\n "details": {}\n },\n "pending_action": {\n "tool": "string",\n "input": {},\n "description": "string",\n "preview": {\n "action": {\n "type": "move",\n "verb": "Move Thread"\n },\n "source": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "target": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "changes": [\n {\n "field": "string",\n "label": "string",\n "from": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n },\n "to": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n }\n }\n ],\n "metadata": {},\n "summary": "This email discusses solar panel installation and should be handled by the Service team."\n }\n },\n "metrics": {\n "total_tokens": 0,\n "input_tokens": 0,\n "output_tokens": 0,\n "total_cost_usd": 0,\n "duration_ms": 0,\n "iteration_count": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `rejectExecution`\n\nReject pending action\n\n`POST /v1/executions/{execution_id}/reject`\n\n```ts\nconst { data } = await client.rejectExecution(\n {\n execution_id: \'example\',\n },\n {\n reason: \'string\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "agent_id": "skill:email-categorizer",\n "agent_source": "system",\n "agent_name": "string",\n "execution_context": "flows",\n "org_id": "string",\n "status": "pending",\n "input": {},\n "parameters": {},\n "result": {\n "response": "string",\n "structured_output": {}\n },\n "error": {\n "code": "TIMEOUT",\n "message": "string",\n "details": {}\n },\n "pending_action": {\n "tool": "string",\n "input": {},\n "description": "string",\n "preview": {\n "action": {\n "type": "move",\n "verb": "Move Thread"\n },\n "source": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "target": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "changes": [\n {\n "field": "string",\n "label": "string",\n "from": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n },\n "to": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n }\n }\n ],\n "metadata": {},\n "summary": "This email discusses solar panel installation and should be handled by the Service team."\n }\n },\n "metrics": {\n "total_tokens": 0,\n "input_tokens": 0,\n "output_tokens": 0,\n "total_cost_usd": 0,\n "duration_ms": 0,\n "iteration_count": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `AgentId`\n\nAgent identifier. Can be either:\n- System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"\n- Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"\n\n\n```ts\ntype AgentId = string\n```\n\n### `CreateAgentRequest`\n\n```ts\ntype CreateAgentRequest = {\n name: string\n description?: string\n category?: "message" | "entity" | "document" | "classification" | "custom"\n icon?: string\n system_prompt: string\n tools?: string[]\n model_config?: {\n model_id?: string\n temperature?: number\n max_tokens?: number\n }\n max_iterations?: number\n execution_pattern: "direct" | "react"\n execution_mode?: "automatic" | "approval" | "draft"\n output_schema?: object\n input_parameters_schema?: {\n type: "object"\n parameters: Array<{\n name: { ... }\n label: { ... }\n type: { ... }\n description?: { ... }\n default?: { ... }\n multi?: { ... }\n dependsOn?: { ... }\n visibleWhen?: { ... }\n enum?: { ... }\n minimum?: { ... }\n maximum?: { ... }\n step?: { ... }\n minLength?: { ... }\n maxLength?: { ... }\n schemaFilter?: { ... }\n attributeTypeFilter?: { ... }\n }>\n required?: string[]\n }\n}\n```\n\n### `UpdateAgentRequest`\n\n```ts\ntype UpdateAgentRequest = {\n name?: string\n description?: string\n category?: "message" | "entity" | "document" | "classification" | "custom"\n icon?: string\n system_prompt?: string\n tools?: string[]\n model_config?: {\n model_id?: string\n temperature?: number\n max_tokens?: number\n }\n max_iterations?: number\n execution_pattern?: "direct" | "react"\n execution_mode?: "automatic" | "approval" | "draft"\n output_schema?: object\n input_parameters_schema?: {\n type: "object"\n parameters: Array<{\n name: { ... }\n label: { ... }\n type: { ... }\n description?: { ... }\n default?: { ... }\n multi?: { ... }\n dependsOn?: { ... }\n visibleWhen?: { ... }\n enum?: { ... }\n minimum?: { ... }\n maximum?: { ... }\n step?: { ... }\n minLength?: { ... }\n maxLength?: { ... }\n schemaFilter?: { ... }\n attributeTypeFilter?: { ... }\n }>\n required?: string[]\n }\n}\n```\n\n### `AgentDefinition`\n\n```ts\ntype AgentDefinition = {\n agent_id?: string\n org_id?: string\n name?: string\n description?: string\n category?: "message" | "entity" | "document" | "classification" | "custom"\n icon?: string\n source?: "system" | "custom"\n availability?: "flows" | "copilot" | "all"[]\n allowed_entity_schemas?: string[]\n system_prompt?: string\n tools?: string[]\n model_config?: {\n model_id?: string\n temperature?: number\n max_tokens?: number\n }\n max_iterations?: number\n execution_pattern?: "direct" | "react"\n execution_mode?: "automatic" | "approval" | "draft"\n output_schema?: object\n input_parameters_schema?: {\n type: "object"\n parameters: Array<{\n name: { ... }\n label: { ... }\n type: { ... }\n description?: { ... }\n default?: { ... }\n multi?: { ... }\n dependsOn?: { ... }\n visibleWhen?: { ... }\n enum?: { ... }\n minimum?: { ... }\n maximum?: { ... }\n step?: { ... }\n minLength?: { ... }\n maxLength?: { ... }\n schemaFilter?: { ... }\n attributeTypeFilter?: { ... }\n }>\n required?: string[]\n }\n version?: number\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: string\n}\n```\n\n### `ListAgentsResponse`\n\n```ts\ntype ListAgentsResponse = {\n agents?: Array<{\n agent_id?: string\n org_id?: string\n name?: string\n description?: string\n category?: "message" | "entity" | "document" | "classification" | "custom"\n icon?: string\n source?: "system" | "custom"\n availability?: "flows" | "copilot" | "all"[]\n allowed_entity_schemas?: string[]\n system_prompt?: string\n tools?: string[]\n model_config?: {\n model_id?: { ... }\n temperature?: { ... }\n max_tokens?: { ... }\n }\n max_iterations?: number\n execution_pattern?: "direct" | "react"\n execution_mode?: "automatic" | "approval" | "draft"\n output_schema?: object\n input_parameters_schema?: {\n type: { ... }\n parameters: { ... }\n required?: { ... }\n }\n version?: number\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: string\n }>\n next_cursor?: string\n}\n```\n\n### `ListExecutionsResponse`\n\n```ts\ntype ListExecutionsResponse = {\n executions?: Array<{\n execution_id?: string // uuid\n agent_id?: string\n agent_source?: "system" | "custom"\n agent_name?: string\n execution_context?: "flows" | "copilot" | "api"\n org_id?: string\n status?: "pending" | "running" | "waiting_approval" | "completed" | "failed" | "cancelled"\n input?: object\n parameters?: object\n result?: {\n response?: { ... }\n structured_output?: { ... }\n }\n error?: {\n code?: { ... }\n message?: { ... }\n details?: { ... }\n }\n pending_action?: {\n tool?: { ... }\n input?: { ... }\n description?: { ... }\n preview?: { ... }\n }\n metrics?: {\n total_tokens?: { ... }\n input_tokens?: { ... }\n output_tokens?: { ... }\n total_cost_usd?: { ... }\n duration_ms?: { ... }\n iteration_count?: { ... }\n }\n started_at?: string // date-time\n completed_at?: string // date-time\n }>\n next_cursor?: string\n}\n```\n\n### `ApproveExecutionRequest`\n\n```ts\ntype ApproveExecutionRequest = {\n reason?: string\n}\n```\n\n### `RejectExecutionRequest`\n\n```ts\ntype RejectExecutionRequest = {\n reason: string\n}\n```\n\n### `ExecuteAgentRequest`\n\n```ts\ntype ExecuteAgentRequest = {\n input?: {\n entity_id?: string\n entity_schema?: string\n workflow_id?: string\n workflow_execution_id?: string\n task_id?: string\n custom_data?: Record<string, unknown>\n flow_context?: Array<{\n entity_id: { ... }\n entity_schema: { ... }\n }>\n }\n parameters?: Record<string, unknown>\n execution_mode_override?: "automatic" | "approval" | "draft"\n execution_context?: "flows" | "copilot" | "api"\n callback_url?: string // uri\n timeout_ms?: number\n}\n```\n\n### `ExecutionResponse`\n\n```ts\ntype ExecutionResponse = {\n execution_id?: string // uuid\n agent_id?: string\n agent_source?: "system" | "custom"\n agent_name?: string\n execution_context?: "flows" | "copilot" | "api"\n org_id?: string\n status?: "pending" | "running" | "waiting_approval" | "completed" | "failed" | "cancelled"\n input?: object\n parameters?: object\n result?: {\n response?: string\n structured_output?: object\n }\n error?: {\n code?: "TIMEOUT" | "MAX_ITERATIONS_EXCEEDED" | "TOOL_EXECUTION_FAILED" | "LLM_ERROR" | "INVALID_OUTPUT" | "REJECTED" | "INTERNAL_ERROR"\n message?: string\n details?: object\n }\n pending_action?: {\n tool?: string\n input?: object\n description?: string\n preview?: {\n action?: { ... }\n source?: { ... }\n target?: { ... }\n changes?: { ... }\n metadata?: { ... }\n summary?: { ... }\n }\n }\n metrics?: {\n total_tokens?: number\n input_tokens?: number\n output_tokens?: number\n total_cost_usd?: number\n duration_ms?: number\n iteration_count?: number\n }\n started_at?: string // date-time\n completed_at?: string // date-time\n}\n```\n\n### `ExecutionTrace`\n\n```ts\ntype ExecutionTrace = {\n execution_id?: string // uuid\n iterations?: Array<{\n iteration_index?: number\n thought?: string\n action?: {\n tool?: { ... }\n input?: { ... }\n }\n observation?: object\n timestamp?: string // date-time\n tokens_used?: number\n latency_ms?: number\n }>\n total_iterations?: number\n}\n```\n\n### `ExecutionIteration`\n\n```ts\ntype ExecutionIteration = {\n iteration_index?: number\n thought?: string\n action?: {\n tool?: string\n input?: object\n }\n observation?: object\n timestamp?: string // date-time\n tokens_used?: number\n latency_ms?: number\n}\n```\n\n### `PendingAction`\n\nAction waiting for approval (when status=waiting_approval)\n\n```ts\ntype PendingAction = {\n tool?: string\n input?: object\n description?: string\n preview?: {\n action?: {\n type: { ... }\n verb: { ... }\n }\n source?: {\n type?: { ... }\n id?: { ... }\n name?: { ... }\n schema?: { ... }\n icon?: { ... }\n url?: { ... }\n }\n target?: {\n type?: { ... }\n id?: { ... }\n name?: { ... }\n schema?: { ... }\n icon?: { ... }\n url?: { ... }\n }\n changes?: Array<{\n field?: { ... }\n label?: { ... }\n from?: { ... }\n to?: { ... }\n }>\n metadata?: Record<string, {\n type: { ... }\n value?: { ... }\n values?: { ... }\n id?: { ... }\n name?: { ... }\n schema?: { ... }\n color?: { ... }\n }>\n summary?: string\n }\n}\n```\n\n### `ExecutionError`\n\n```ts\ntype ExecutionError = {\n code?: "TIMEOUT" | "MAX_ITERATIONS_EXCEEDED" | "TOOL_EXECUTION_FAILED" | "LLM_ERROR" | "INVALID_OUTPUT" | "REJECTED" | "INTERNAL_ERROR"\n message?: string\n details?: object\n}\n```\n\n### `ExecutionMetrics`\n\n```ts\ntype ExecutionMetrics = {\n total_tokens?: number\n input_tokens?: number\n output_tokens?: number\n total_cost_usd?: number\n duration_ms?: number\n iteration_count?: number\n}\n```\n\n### `ToolPreview`\n\nStructured preview data for approval UI. Provides a generic format that any tool can populate.\n\n```ts\ntype ToolPreview = {\n action?: {\n type: "move" | "create" | "update" | "delete" | "apply" | "send" | "link" | "unlink"\n verb: string\n }\n source?: {\n type?: string\n id?: string\n name?: string\n schema?: string\n icon?: string\n url?: string\n }\n target?: {\n type?: string\n id?: string\n name?: string\n schema?: string\n icon?: string\n url?: string\n }\n changes?: Array<{\n field?: string\n label?: string\n from?: {\n type: { ... }\n value?: { ... }\n values?: { ... }\n id?: { ... }\n name?: { ... }\n schema?: { ... }\n color?: { ... }\n }\n to?: {\n type: { ... }\n value?: { ... }\n values?: { ... }\n id?: { ... }\n name?: { ... }\n schema?: { ... }\n color?: { ... }\n }\n }>\n metadata?: Record<string, {\n type: "text" | "number" | "boolean" | "list" | "entity" | "badge"\n value?: unknown\n values?: string[]\n id?: string\n name?: string\n schema?: string\n color?: "success" | "warning" | "error" | "info"\n }>\n summary?: string\n}\n```\n\n### `PreviewActionType`\n\nType of action being previewed\n\n```ts\ntype PreviewActionType = "move" | "create" | "update" | "delete" | "apply" | "send" | "link" | "unlink"\n```\n\n### `PreviewEntity`\n\nEntity reference for preview display\n\n```ts\ntype PreviewEntity = {\n type?: string\n id?: string\n name?: string\n schema?: string\n icon?: string\n url?: string\n}\n```\n\n### `PreviewChange`\n\nA single field change in the preview\n\n```ts\ntype PreviewChange = {\n field?: string\n label?: string\n from?: {\n type: "text" | "number" | "boolean" | "list" | "entity" | "badge"\n value?: unknown\n values?: string[]\n id?: string\n name?: string\n schema?: string\n color?: "success" | "warning" | "error" | "info"\n }\n to?: {\n type: "text" | "number" | "boolean" | "list" | "entity" | "badge"\n value?: unknown\n values?: string[]\n id?: string\n name?: string\n schema?: string\n color?: "success" | "warning" | "error" | "info"\n }\n}\n```\n\n### `PreviewValue`\n\nTyped value for preview display\n\n```ts\ntype PreviewValue = {\n type: "text" | "number" | "boolean" | "list" | "entity" | "badge"\n value?: unknown\n values?: string[]\n id?: string\n name?: string\n schema?: string\n color?: "success" | "warning" | "error" | "info"\n}\n```\n\n### `ToolDefinition`\n\n```ts\ntype ToolDefinition = {\n tool_id?: string\n name?: string\n description?: string\n category?: "entity" | "email" | "taxonomy" | "rag" | "workflow"\n parameters?: object\n returns?: object\n requires_approval?: boolean\n enabled?: boolean\n}\n```\n\n### `SkillCategory`\n\n```ts\ntype SkillCategory = "message" | "entity" | "document" | "classification" | "custom"\n```\n\n### `AgentSource`\n\n- system: Pre-built by epilot (system skills)\n- custom: Created by organization\n\n\n```ts\ntype AgentSource = "system" | "custom"\n```\n\n### `SkillAvailability`\n\nWhere the skill/agent is available:\n- flows: Available in workflow automations\n- copilot: Available as a sub-agent in copilot\n- all: Available everywhere\n\n\n```ts\ntype SkillAvailability = "flows" | "copilot" | "all"\n```\n\n### `ExecutionContext`\n\nWhere the execution was triggered from:\n- flows: Triggered from workflow automation\n- copilot: Triggered from copilot assistant\n- api: Direct API call\n\n\n```ts\ntype ExecutionContext = "flows" | "copilot" | "api"\n```\n\n### `ExecutionPattern`\n\n- direct: Single LLM call, no tools\n- react: Multi-step reasoning with tool use\n\n\n```ts\ntype ExecutionPattern = "direct" | "react"\n```\n\n### `ExecutionMode`\n\n- automatic: Execute without human intervention\n- approval: Pause for human approval before tool execution\n- draft: Execute but mark output as draft for review\n\n\n```ts\ntype ExecutionMode = "automatic" | "approval" | "draft"\n```\n\n### `ExecutionStatus`\n\n```ts\ntype ExecutionStatus = "pending" | "running" | "waiting_approval" | "completed" | "failed" | "cancelled"\n```\n\n### `ParameterType`\n\nBase types:\n- text: Text input field\n- textarea: Multi-line text input field\n- number: Numeric input field\n- boolean: Toggle switch\n- select: Dropdown selection (requires enum array)\n\nCustom types (domain-specific):\n- entity-schema: Entity schema selector (fetches from Entity API)\n- entity-attribute\n\n```ts\ntype ParameterType = "text" | "textarea" | "number" | "boolean" | "select" | "entity-schema" | "entity-attribute" | "entity-id" | "taxonomy" | "taxonomy-classification" | "shared-inbox" | "label"\n```\n\n### `InputParameterDefinition`\n\n```ts\ntype InputParameterDefinition = {\n name: string\n label: string\n type: "text" | "textarea" | "number" | "boolean" | "select" | "entity-schema" | "entity-attribute" | "entity-id" | "taxonomy" | "taxonomy-classification" | "shared-inbox" | "label"\n description?: string\n default?: unknown\n multi?: boolean\n dependsOn?: string\n visibleWhen?: Record<string, unknown[]>\n enum?: string[]\n minimum?: number\n maximum?: number\n step?: number\n minLength?: number\n maxLength?: number\n schemaFilter?: string[]\n attributeTypeFilter?: string[]\n}\n```\n\n### `InputParametersSchema`\n\n```ts\ntype InputParametersSchema = {\n type: "object"\n parameters: Array<{\n name: string\n label: string\n type: "text" | "textarea" | "number" | "boolean" | "select" | "entity-schema" | "entity-attribute" | "entity-id" | "taxonomy" | "taxonomy-classification" | "shared-inbox" | "label"\n description?: string\n default?: unknown\n multi?: boolean\n dependsOn?: string\n visibleWhen?: Record<string, unknown[]>\n enum?: string[]\n minimum?: number\n maximum?: number\n step?: number\n minLength?: number\n maxLength?: number\n schemaFilter?: string[]\n attributeTypeFilter?: string[]\n }>\n required?: string[]\n}\n```\n\n### `ModelConfig`\n\n```ts\ntype ModelConfig = {\n model_id?: string\n temperature?: number\n max_tokens?: number\n}\n```\n\n### `Error`\n\n```ts\ntype Error = {\n error?: string\n message?: string\n details?: object\n}\n```\n';
5
- export {
6
- ai_agents_default as default
7
- };
@@ -1,7 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
2
-
3
- // src/docs/ai-agents.json
4
- var ai_agents_default = '# AI Agents API - OpenAPI 3.0\n\n- **Base URL:** `https://ai-agents.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/ai-agents](https://docs.epilot.io/api/ai-agents)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.aiAgents.createAgent(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/ai-agents\'\n\nconst aiAgentsClient = getClient()\nauthorize(aiAgentsClient, () => \'<token>\')\nconst { data } = await aiAgentsClient.createAgent(...)\n```\n\n## Operations\n\n**Agents Configuration**\n- [`createAgent`](#createagent)\n- [`listAgents`](#listagents)\n- [`getAgentById`](#getagentbyid)\n- [`updateAgentById`](#updateagentbyid)\n- [`deleteAgentById`](#deleteagentbyid)\n\n**Agent Execution**\n- [`executeAgent`](#executeagent)\n- [`listExecutions`](#listexecutions)\n- [`getExecution`](#getexecution)\n- [`cancelExecution`](#cancelexecution)\n- [`getExecutionTrace`](#getexecutiontrace)\n- [`approveExecution`](#approveexecution)\n- [`rejectExecution`](#rejectexecution)\n\n**Schemas**\n- [`AgentId`](#agentid)\n- [`CreateAgentRequest`](#createagentrequest)\n- [`UpdateAgentRequest`](#updateagentrequest)\n- [`AgentDefinition`](#agentdefinition)\n- [`ListAgentsResponse`](#listagentsresponse)\n- [`ListExecutionsResponse`](#listexecutionsresponse)\n- [`ApproveExecutionRequest`](#approveexecutionrequest)\n- [`RejectExecutionRequest`](#rejectexecutionrequest)\n- [`ExecuteAgentRequest`](#executeagentrequest)\n- [`ExecutionResponse`](#executionresponse)\n- [`ExecutionTrace`](#executiontrace)\n- [`ExecutionIteration`](#executioniteration)\n- [`PendingAction`](#pendingaction)\n- [`ExecutionError`](#executionerror)\n- [`ExecutionMetrics`](#executionmetrics)\n- [`ToolPreview`](#toolpreview)\n- [`PreviewActionType`](#previewactiontype)\n- [`PreviewEntity`](#previewentity)\n- [`PreviewChange`](#previewchange)\n- [`PreviewValue`](#previewvalue)\n- [`ToolDefinition`](#tooldefinition)\n- [`SkillCategory`](#skillcategory)\n- [`AgentSource`](#agentsource)\n- [`SkillAvailability`](#skillavailability)\n- [`ExecutionContext`](#executioncontext)\n- [`ExecutionPattern`](#executionpattern)\n- [`ExecutionMode`](#executionmode)\n- [`ExecutionStatus`](#executionstatus)\n- [`ParameterType`](#parametertype)\n- [`InputParameterDefinition`](#inputparameterdefinition)\n- [`InputParametersSchema`](#inputparametersschema)\n- [`ModelConfig`](#modelconfig)\n- [`Error`](#error)\n\n### `createAgent`\n\nCreate Agent definition\n\n`POST /v1/agents`\n\n```ts\nconst { data } = await client.createAgent(\n null,\n {\n name: \'Email Reply Generator\',\n description: \'string\',\n category: \'message\',\n icon: \'mail-reply\',\n system_prompt: \'string\',\n tools: [\'entity.search\', \'message.draft\'],\n model_config: {\n model_id: \'anthropic.claude-3-5-sonnet-20241022-v2:0\',\n temperature: 0.7,\n max_tokens: 4096\n },\n max_iterations: 10,\n execution_pattern: \'direct\',\n execution_mode: \'automatic\',\n output_schema: {},\n input_parameters_schema: {\n type: \'object\',\n parameters: [\n {\n name: \'target_schema\',\n label: \'Target Schema\',\n type: \'entity-schema\',\n description: \'Entity type to create\'\n },\n {\n name: \'confidence_threshold\',\n label: \'Confidence Threshold\',\n type: \'number\',\n minimum: 0,\n maximum: 1,\n default: 0.8\n },\n /* ... 1 more */\n ],\n required: [\'target_schema\']\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "agent_id": "skill:email-categorizer",\n "org_id": "string",\n "name": "string",\n "description": "string",\n "category": "message",\n "icon": "string",\n "source": "system",\n "availability": ["flows", "copilot"],\n "allowed_entity_schemas": ["message"],\n "system_prompt": "string",\n "tools": ["string"],\n "model_config": {\n "model_id": "anthropic.claude-3-5-sonnet-20241022-v2:0",\n "temperature": 0.7,\n "max_tokens": 4096\n },\n "max_iterations": 0,\n "execution_pattern": "direct",\n "execution_mode": "automatic",\n "output_schema": {},\n "input_parameters_schema": {\n "type": "object",\n "parameters": [\n {\n "name": "target_schema",\n "label": "Target Schema",\n "type": "entity-schema",\n "description": "Entity type to create"\n },\n {\n "name": "confidence_threshold",\n "label": "Confidence Threshold",\n "type": "number",\n "minimum": 0,\n "maximum": 1,\n "default": 0.8\n }\n ],\n "required": ["target_schema"]\n },\n "version": 0,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `listAgents`\n\nList all agent configurations\n\n`GET /v1/agents`\n\n```ts\nconst { data } = await client.listAgents({\n source: \'example\',\n availability: \'example\',\n entity_schema: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "agents": [\n {\n "agent_id": "skill:email-categorizer",\n "org_id": "string",\n "name": "string",\n "description": "string",\n "category": "message",\n "icon": "string",\n "source": "system",\n "availability": ["flows", "copilot"],\n "allowed_entity_schemas": ["message"],\n "system_prompt": "string",\n "tools": ["string"],\n "model_config": {\n "model_id": "anthropic.claude-3-5-sonnet-20241022-v2:0",\n "temperature": 0.7,\n "max_tokens": 4096\n },\n "max_iterations": 0,\n "execution_pattern": "direct",\n "execution_mode": "automatic",\n "output_schema": {},\n "input_parameters_schema": {\n "type": "object",\n "parameters": [\n {\n "name": "target_schema",\n "label": "Target Schema",\n "type": "entity-schema",\n "description": "Entity type to create"\n },\n {\n "name": "confidence_threshold",\n "label": "Confidence Threshold",\n "type": "number",\n "minimum": 0,\n "maximum": 1,\n "default": 0.8\n }\n ],\n "required": ["target_schema"]\n },\n "version": 0,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": "string"\n }\n ],\n "next_cursor": "string"\n}\n```\n\n</details>\n\n---\n\n### `getAgentById`\n\nGet the agent configuration by ID\n\n`GET /v1/agents/{agent_id}`\n\n```ts\nconst { data } = await client.getAgentById({\n agent_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "agent_id": "skill:email-categorizer",\n "org_id": "string",\n "name": "string",\n "description": "string",\n "category": "message",\n "icon": "string",\n "source": "system",\n "availability": ["flows", "copilot"],\n "allowed_entity_schemas": ["message"],\n "system_prompt": "string",\n "tools": ["string"],\n "model_config": {\n "model_id": "anthropic.claude-3-5-sonnet-20241022-v2:0",\n "temperature": 0.7,\n "max_tokens": 4096\n },\n "max_iterations": 0,\n "execution_pattern": "direct",\n "execution_mode": "automatic",\n "output_schema": {},\n "input_parameters_schema": {\n "type": "object",\n "parameters": [\n {\n "name": "target_schema",\n "label": "Target Schema",\n "type": "entity-schema",\n "description": "Entity type to create"\n },\n {\n "name": "confidence_threshold",\n "label": "Confidence Threshold",\n "type": "number",\n "minimum": 0,\n "maximum": 1,\n "default": 0.8\n }\n ],\n "required": ["target_schema"]\n },\n "version": 0,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `updateAgentById`\n\nUpdate the agent configuration by ID\n\n`PUT /v1/agents/{agent_id}`\n\n```ts\nconst { data } = await client.updateAgentById(\n {\n agent_id: \'example\',\n },\n {\n name: \'string\',\n description: \'string\',\n category: \'message\',\n icon: \'string\',\n system_prompt: \'string\',\n tools: [\'string\'],\n model_config: {\n model_id: \'anthropic.claude-3-5-sonnet-20241022-v2:0\',\n temperature: 0.7,\n max_tokens: 4096\n },\n max_iterations: 1,\n execution_pattern: \'direct\',\n execution_mode: \'automatic\',\n output_schema: {},\n input_parameters_schema: {\n type: \'object\',\n parameters: [\n {\n name: \'target_schema\',\n label: \'Target Schema\',\n type: \'entity-schema\',\n description: \'Entity type to create\'\n },\n {\n name: \'confidence_threshold\',\n label: \'Confidence Threshold\',\n type: \'number\',\n minimum: 0,\n maximum: 1,\n default: 0.8\n },\n /* ... 1 more */\n ],\n required: [\'target_schema\']\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "agent_id": "skill:email-categorizer",\n "org_id": "string",\n "name": "string",\n "description": "string",\n "category": "message",\n "icon": "string",\n "source": "system",\n "availability": ["flows", "copilot"],\n "allowed_entity_schemas": ["message"],\n "system_prompt": "string",\n "tools": ["string"],\n "model_config": {\n "model_id": "anthropic.claude-3-5-sonnet-20241022-v2:0",\n "temperature": 0.7,\n "max_tokens": 4096\n },\n "max_iterations": 0,\n "execution_pattern": "direct",\n "execution_mode": "automatic",\n "output_schema": {},\n "input_parameters_schema": {\n "type": "object",\n "parameters": [\n {\n "name": "target_schema",\n "label": "Target Schema",\n "type": "entity-schema",\n "description": "Entity type to create"\n },\n {\n "name": "confidence_threshold",\n "label": "Confidence Threshold",\n "type": "number",\n "minimum": 0,\n "maximum": 1,\n "default": 0.8\n }\n ],\n "required": ["target_schema"]\n },\n "version": 0,\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `deleteAgentById`\n\nDelete the agent configuration by ID\n\n`DELETE /v1/agents/{agent_id}`\n\n```ts\nconst { data } = await client.deleteAgentById({\n agent_id: \'example\',\n})\n```\n\n---\n\n### `executeAgent`\n\nExecute an agent\n\n`POST /v1/agents/{agent_id}/execute`\n\n```ts\nconst { data } = await client.executeAgent(\n {\n agent_id: \'example\',\n },\n {\n input: {\n entity_id: \'string\',\n entity_schema: \'string\',\n workflow_id: \'string\',\n workflow_execution_id: \'string\',\n task_id: \'string\',\n custom_data: {},\n flow_context: [\n {\n entity_id: \'string\',\n entity_schema: \'string\'\n }\n ]\n },\n parameters: {},\n execution_mode_override: \'automatic\',\n execution_context: \'flows\',\n callback_url: \'https://example.com/path\',\n timeout_ms: 30000\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "agent_id": "skill:email-categorizer",\n "agent_source": "system",\n "agent_name": "string",\n "execution_context": "flows",\n "org_id": "string",\n "status": "pending",\n "input": {},\n "parameters": {},\n "result": {\n "response": "string",\n "structured_output": {}\n },\n "error": {\n "code": "TIMEOUT",\n "message": "string",\n "details": {}\n },\n "pending_action": {\n "tool": "string",\n "input": {},\n "description": "string",\n "preview": {\n "action": {\n "type": "move",\n "verb": "Move Thread"\n },\n "source": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "target": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "changes": [\n {\n "field": "string",\n "label": "string",\n "from": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n },\n "to": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n }\n }\n ],\n "metadata": {},\n "summary": "This email discusses solar panel installation and should be handled by the Service team."\n }\n },\n "metrics": {\n "total_tokens": 0,\n "input_tokens": 0,\n "output_tokens": 0,\n "total_cost_usd": 0,\n "duration_ms": 0,\n "iteration_count": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `listExecutions`\n\nList executions\n\n`GET /v1/executions`\n\n```ts\nconst { data } = await client.listExecutions({\n agent_id: \'example\',\n status: \'example\',\n limit: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "executions": [\n {\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "agent_id": "skill:email-categorizer",\n "agent_source": "system",\n "agent_name": "string",\n "execution_context": "flows",\n "org_id": "string",\n "status": "pending",\n "input": {},\n "parameters": {},\n "result": {\n "response": "string",\n "structured_output": {}\n },\n "error": {\n "code": "TIMEOUT",\n "message": "string",\n "details": {}\n },\n "pending_action": {\n "tool": "string",\n "input": {},\n "description": "string",\n "preview": {\n "action": {\n "type": "move",\n "verb": "Move Thread"\n },\n "source": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "target": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "changes": [\n {\n "field": "string",\n "label": "string",\n "from": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n },\n "to": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n }\n }\n ],\n "metadata": {},\n "summary": "This email discusses solar panel installation and should be handled by the Service team."\n }\n },\n "metrics": {\n "total_tokens": 0,\n "input_tokens": 0,\n "output_tokens": 0,\n "total_cost_usd": 0,\n "duration_ms": 0,\n "iteration_count": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z"\n }\n ],\n "next_cursor": "string"\n}\n```\n\n</details>\n\n---\n\n### `getExecution`\n\nGet execution by ID\n\n`GET /v1/executions/{execution_id}`\n\n```ts\nconst { data } = await client.getExecution({\n execution_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "agent_id": "skill:email-categorizer",\n "agent_source": "system",\n "agent_name": "string",\n "execution_context": "flows",\n "org_id": "string",\n "status": "pending",\n "input": {},\n "parameters": {},\n "result": {\n "response": "string",\n "structured_output": {}\n },\n "error": {\n "code": "TIMEOUT",\n "message": "string",\n "details": {}\n },\n "pending_action": {\n "tool": "string",\n "input": {},\n "description": "string",\n "preview": {\n "action": {\n "type": "move",\n "verb": "Move Thread"\n },\n "source": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "target": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "changes": [\n {\n "field": "string",\n "label": "string",\n "from": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n },\n "to": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n }\n }\n ],\n "metadata": {},\n "summary": "This email discusses solar panel installation and should be handled by the Service team."\n }\n },\n "metrics": {\n "total_tokens": 0,\n "input_tokens": 0,\n "output_tokens": 0,\n "total_cost_usd": 0,\n "duration_ms": 0,\n "iteration_count": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `cancelExecution`\n\nCancel execution\n\n`DELETE /v1/executions/{execution_id}`\n\n```ts\nconst { data } = await client.cancelExecution({\n execution_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "agent_id": "skill:email-categorizer",\n "agent_source": "system",\n "agent_name": "string",\n "execution_context": "flows",\n "org_id": "string",\n "status": "pending",\n "input": {},\n "parameters": {},\n "result": {\n "response": "string",\n "structured_output": {}\n },\n "error": {\n "code": "TIMEOUT",\n "message": "string",\n "details": {}\n },\n "pending_action": {\n "tool": "string",\n "input": {},\n "description": "string",\n "preview": {\n "action": {\n "type": "move",\n "verb": "Move Thread"\n },\n "source": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "target": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "changes": [\n {\n "field": "string",\n "label": "string",\n "from": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n },\n "to": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n }\n }\n ],\n "metadata": {},\n "summary": "This email discusses solar panel installation and should be handled by the Service team."\n }\n },\n "metrics": {\n "total_tokens": 0,\n "input_tokens": 0,\n "output_tokens": 0,\n "total_cost_usd": 0,\n "duration_ms": 0,\n "iteration_count": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `getExecutionTrace`\n\nGet execution trace/iterations\n\n`GET /v1/executions/{execution_id}/trace`\n\n```ts\nconst { data } = await client.getExecutionTrace({\n execution_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "iterations": [\n {\n "iteration_index": 0,\n "thought": "string",\n "action": {\n "tool": "string",\n "input": {}\n },\n "observation": {},\n "timestamp": "1970-01-01T00:00:00.000Z",\n "tokens_used": 0,\n "latency_ms": 0\n }\n ],\n "total_iterations": 0\n}\n```\n\n</details>\n\n---\n\n### `approveExecution`\n\nApprove pending action\n\n`POST /v1/executions/{execution_id}/approve`\n\n```ts\nconst { data } = await client.approveExecution(\n {\n execution_id: \'example\',\n },\n {\n reason: \'string\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "agent_id": "skill:email-categorizer",\n "agent_source": "system",\n "agent_name": "string",\n "execution_context": "flows",\n "org_id": "string",\n "status": "pending",\n "input": {},\n "parameters": {},\n "result": {\n "response": "string",\n "structured_output": {}\n },\n "error": {\n "code": "TIMEOUT",\n "message": "string",\n "details": {}\n },\n "pending_action": {\n "tool": "string",\n "input": {},\n "description": "string",\n "preview": {\n "action": {\n "type": "move",\n "verb": "Move Thread"\n },\n "source": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "target": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "changes": [\n {\n "field": "string",\n "label": "string",\n "from": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n },\n "to": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n }\n }\n ],\n "metadata": {},\n "summary": "This email discusses solar panel installation and should be handled by the Service team."\n }\n },\n "metrics": {\n "total_tokens": 0,\n "input_tokens": 0,\n "output_tokens": 0,\n "total_cost_usd": 0,\n "duration_ms": 0,\n "iteration_count": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `rejectExecution`\n\nReject pending action\n\n`POST /v1/executions/{execution_id}/reject`\n\n```ts\nconst { data } = await client.rejectExecution(\n {\n execution_id: \'example\',\n },\n {\n reason: \'string\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "agent_id": "skill:email-categorizer",\n "agent_source": "system",\n "agent_name": "string",\n "execution_context": "flows",\n "org_id": "string",\n "status": "pending",\n "input": {},\n "parameters": {},\n "result": {\n "response": "string",\n "structured_output": {}\n },\n "error": {\n "code": "TIMEOUT",\n "message": "string",\n "details": {}\n },\n "pending_action": {\n "tool": "string",\n "input": {},\n "description": "string",\n "preview": {\n "action": {\n "type": "move",\n "verb": "Move Thread"\n },\n "source": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "target": {\n "type": "inbox",\n "id": "string",\n "name": "Support Inbox",\n "schema": "string",\n "icon": "string",\n "url": "string"\n },\n "changes": [\n {\n "field": "string",\n "label": "string",\n "from": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n },\n "to": {\n "type": "text",\n "value": {},\n "values": ["string"],\n "id": "string",\n "name": "string",\n "schema": "string",\n "color": "success"\n }\n }\n ],\n "metadata": {},\n "summary": "This email discusses solar panel installation and should be handled by the Service team."\n }\n },\n "metrics": {\n "total_tokens": 0,\n "input_tokens": 0,\n "output_tokens": 0,\n "total_cost_usd": 0,\n "duration_ms": 0,\n "iteration_count": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `AgentId`\n\nAgent identifier. Can be either:\n- System skill ID (prefixed): "skill:email-categorizer", "skill:email-labeler"\n- Custom agent UUID: "0336a235-9417-4dd8-894c-fe81285bba75"\n\n\n```ts\ntype AgentId = string\n```\n\n### `CreateAgentRequest`\n\n```ts\ntype CreateAgentRequest = {\n name: string\n description?: string\n category?: "message" | "entity" | "document" | "classification" | "custom"\n icon?: string\n system_prompt: string\n tools?: string[]\n model_config?: {\n model_id?: string\n temperature?: number\n max_tokens?: number\n }\n max_iterations?: number\n execution_pattern: "direct" | "react"\n execution_mode?: "automatic" | "approval" | "draft"\n output_schema?: object\n input_parameters_schema?: {\n type: "object"\n parameters: Array<{\n name: { ... }\n label: { ... }\n type: { ... }\n description?: { ... }\n default?: { ... }\n multi?: { ... }\n dependsOn?: { ... }\n visibleWhen?: { ... }\n enum?: { ... }\n minimum?: { ... }\n maximum?: { ... }\n step?: { ... }\n minLength?: { ... }\n maxLength?: { ... }\n schemaFilter?: { ... }\n attributeTypeFilter?: { ... }\n }>\n required?: string[]\n }\n}\n```\n\n### `UpdateAgentRequest`\n\n```ts\ntype UpdateAgentRequest = {\n name?: string\n description?: string\n category?: "message" | "entity" | "document" | "classification" | "custom"\n icon?: string\n system_prompt?: string\n tools?: string[]\n model_config?: {\n model_id?: string\n temperature?: number\n max_tokens?: number\n }\n max_iterations?: number\n execution_pattern?: "direct" | "react"\n execution_mode?: "automatic" | "approval" | "draft"\n output_schema?: object\n input_parameters_schema?: {\n type: "object"\n parameters: Array<{\n name: { ... }\n label: { ... }\n type: { ... }\n description?: { ... }\n default?: { ... }\n multi?: { ... }\n dependsOn?: { ... }\n visibleWhen?: { ... }\n enum?: { ... }\n minimum?: { ... }\n maximum?: { ... }\n step?: { ... }\n minLength?: { ... }\n maxLength?: { ... }\n schemaFilter?: { ... }\n attributeTypeFilter?: { ... }\n }>\n required?: string[]\n }\n}\n```\n\n### `AgentDefinition`\n\n```ts\ntype AgentDefinition = {\n agent_id?: string\n org_id?: string\n name?: string\n description?: string\n category?: "message" | "entity" | "document" | "classification" | "custom"\n icon?: string\n source?: "system" | "custom"\n availability?: "flows" | "copilot" | "all"[]\n allowed_entity_schemas?: string[]\n system_prompt?: string\n tools?: string[]\n model_config?: {\n model_id?: string\n temperature?: number\n max_tokens?: number\n }\n max_iterations?: number\n execution_pattern?: "direct" | "react"\n execution_mode?: "automatic" | "approval" | "draft"\n output_schema?: object\n input_parameters_schema?: {\n type: "object"\n parameters: Array<{\n name: { ... }\n label: { ... }\n type: { ... }\n description?: { ... }\n default?: { ... }\n multi?: { ... }\n dependsOn?: { ... }\n visibleWhen?: { ... }\n enum?: { ... }\n minimum?: { ... }\n maximum?: { ... }\n step?: { ... }\n minLength?: { ... }\n maxLength?: { ... }\n schemaFilter?: { ... }\n attributeTypeFilter?: { ... }\n }>\n required?: string[]\n }\n version?: number\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: string\n}\n```\n\n### `ListAgentsResponse`\n\n```ts\ntype ListAgentsResponse = {\n agents?: Array<{\n agent_id?: string\n org_id?: string\n name?: string\n description?: string\n category?: "message" | "entity" | "document" | "classification" | "custom"\n icon?: string\n source?: "system" | "custom"\n availability?: "flows" | "copilot" | "all"[]\n allowed_entity_schemas?: string[]\n system_prompt?: string\n tools?: string[]\n model_config?: {\n model_id?: { ... }\n temperature?: { ... }\n max_tokens?: { ... }\n }\n max_iterations?: number\n execution_pattern?: "direct" | "react"\n execution_mode?: "automatic" | "approval" | "draft"\n output_schema?: object\n input_parameters_schema?: {\n type: { ... }\n parameters: { ... }\n required?: { ... }\n }\n version?: number\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: string\n }>\n next_cursor?: string\n}\n```\n\n### `ListExecutionsResponse`\n\n```ts\ntype ListExecutionsResponse = {\n executions?: Array<{\n execution_id?: string // uuid\n agent_id?: string\n agent_source?: "system" | "custom"\n agent_name?: string\n execution_context?: "flows" | "copilot" | "api"\n org_id?: string\n status?: "pending" | "running" | "waiting_approval" | "completed" | "failed" | "cancelled"\n input?: object\n parameters?: object\n result?: {\n response?: { ... }\n structured_output?: { ... }\n }\n error?: {\n code?: { ... }\n message?: { ... }\n details?: { ... }\n }\n pending_action?: {\n tool?: { ... }\n input?: { ... }\n description?: { ... }\n preview?: { ... }\n }\n metrics?: {\n total_tokens?: { ... }\n input_tokens?: { ... }\n output_tokens?: { ... }\n total_cost_usd?: { ... }\n duration_ms?: { ... }\n iteration_count?: { ... }\n }\n started_at?: string // date-time\n completed_at?: string // date-time\n }>\n next_cursor?: string\n}\n```\n\n### `ApproveExecutionRequest`\n\n```ts\ntype ApproveExecutionRequest = {\n reason?: string\n}\n```\n\n### `RejectExecutionRequest`\n\n```ts\ntype RejectExecutionRequest = {\n reason: string\n}\n```\n\n### `ExecuteAgentRequest`\n\n```ts\ntype ExecuteAgentRequest = {\n input?: {\n entity_id?: string\n entity_schema?: string\n workflow_id?: string\n workflow_execution_id?: string\n task_id?: string\n custom_data?: Record<string, unknown>\n flow_context?: Array<{\n entity_id: { ... }\n entity_schema: { ... }\n }>\n }\n parameters?: Record<string, unknown>\n execution_mode_override?: "automatic" | "approval" | "draft"\n execution_context?: "flows" | "copilot" | "api"\n callback_url?: string // uri\n timeout_ms?: number\n}\n```\n\n### `ExecutionResponse`\n\n```ts\ntype ExecutionResponse = {\n execution_id?: string // uuid\n agent_id?: string\n agent_source?: "system" | "custom"\n agent_name?: string\n execution_context?: "flows" | "copilot" | "api"\n org_id?: string\n status?: "pending" | "running" | "waiting_approval" | "completed" | "failed" | "cancelled"\n input?: object\n parameters?: object\n result?: {\n response?: string\n structured_output?: object\n }\n error?: {\n code?: "TIMEOUT" | "MAX_ITERATIONS_EXCEEDED" | "TOOL_EXECUTION_FAILED" | "LLM_ERROR" | "INVALID_OUTPUT" | "REJECTED" | "INTERNAL_ERROR"\n message?: string\n details?: object\n }\n pending_action?: {\n tool?: string\n input?: object\n description?: string\n preview?: {\n action?: { ... }\n source?: { ... }\n target?: { ... }\n changes?: { ... }\n metadata?: { ... }\n summary?: { ... }\n }\n }\n metrics?: {\n total_tokens?: number\n input_tokens?: number\n output_tokens?: number\n total_cost_usd?: number\n duration_ms?: number\n iteration_count?: number\n }\n started_at?: string // date-time\n completed_at?: string // date-time\n}\n```\n\n### `ExecutionTrace`\n\n```ts\ntype ExecutionTrace = {\n execution_id?: string // uuid\n iterations?: Array<{\n iteration_index?: number\n thought?: string\n action?: {\n tool?: { ... }\n input?: { ... }\n }\n observation?: object\n timestamp?: string // date-time\n tokens_used?: number\n latency_ms?: number\n }>\n total_iterations?: number\n}\n```\n\n### `ExecutionIteration`\n\n```ts\ntype ExecutionIteration = {\n iteration_index?: number\n thought?: string\n action?: {\n tool?: string\n input?: object\n }\n observation?: object\n timestamp?: string // date-time\n tokens_used?: number\n latency_ms?: number\n}\n```\n\n### `PendingAction`\n\nAction waiting for approval (when status=waiting_approval)\n\n```ts\ntype PendingAction = {\n tool?: string\n input?: object\n description?: string\n preview?: {\n action?: {\n type: { ... }\n verb: { ... }\n }\n source?: {\n type?: { ... }\n id?: { ... }\n name?: { ... }\n schema?: { ... }\n icon?: { ... }\n url?: { ... }\n }\n target?: {\n type?: { ... }\n id?: { ... }\n name?: { ... }\n schema?: { ... }\n icon?: { ... }\n url?: { ... }\n }\n changes?: Array<{\n field?: { ... }\n label?: { ... }\n from?: { ... }\n to?: { ... }\n }>\n metadata?: Record<string, {\n type: { ... }\n value?: { ... }\n values?: { ... }\n id?: { ... }\n name?: { ... }\n schema?: { ... }\n color?: { ... }\n }>\n summary?: string\n }\n}\n```\n\n### `ExecutionError`\n\n```ts\ntype ExecutionError = {\n code?: "TIMEOUT" | "MAX_ITERATIONS_EXCEEDED" | "TOOL_EXECUTION_FAILED" | "LLM_ERROR" | "INVALID_OUTPUT" | "REJECTED" | "INTERNAL_ERROR"\n message?: string\n details?: object\n}\n```\n\n### `ExecutionMetrics`\n\n```ts\ntype ExecutionMetrics = {\n total_tokens?: number\n input_tokens?: number\n output_tokens?: number\n total_cost_usd?: number\n duration_ms?: number\n iteration_count?: number\n}\n```\n\n### `ToolPreview`\n\nStructured preview data for approval UI. Provides a generic format that any tool can populate.\n\n```ts\ntype ToolPreview = {\n action?: {\n type: "move" | "create" | "update" | "delete" | "apply" | "send" | "link" | "unlink"\n verb: string\n }\n source?: {\n type?: string\n id?: string\n name?: string\n schema?: string\n icon?: string\n url?: string\n }\n target?: {\n type?: string\n id?: string\n name?: string\n schema?: string\n icon?: string\n url?: string\n }\n changes?: Array<{\n field?: string\n label?: string\n from?: {\n type: { ... }\n value?: { ... }\n values?: { ... }\n id?: { ... }\n name?: { ... }\n schema?: { ... }\n color?: { ... }\n }\n to?: {\n type: { ... }\n value?: { ... }\n values?: { ... }\n id?: { ... }\n name?: { ... }\n schema?: { ... }\n color?: { ... }\n }\n }>\n metadata?: Record<string, {\n type: "text" | "number" | "boolean" | "list" | "entity" | "badge"\n value?: unknown\n values?: string[]\n id?: string\n name?: string\n schema?: string\n color?: "success" | "warning" | "error" | "info"\n }>\n summary?: string\n}\n```\n\n### `PreviewActionType`\n\nType of action being previewed\n\n```ts\ntype PreviewActionType = "move" | "create" | "update" | "delete" | "apply" | "send" | "link" | "unlink"\n```\n\n### `PreviewEntity`\n\nEntity reference for preview display\n\n```ts\ntype PreviewEntity = {\n type?: string\n id?: string\n name?: string\n schema?: string\n icon?: string\n url?: string\n}\n```\n\n### `PreviewChange`\n\nA single field change in the preview\n\n```ts\ntype PreviewChange = {\n field?: string\n label?: string\n from?: {\n type: "text" | "number" | "boolean" | "list" | "entity" | "badge"\n value?: unknown\n values?: string[]\n id?: string\n name?: string\n schema?: string\n color?: "success" | "warning" | "error" | "info"\n }\n to?: {\n type: "text" | "number" | "boolean" | "list" | "entity" | "badge"\n value?: unknown\n values?: string[]\n id?: string\n name?: string\n schema?: string\n color?: "success" | "warning" | "error" | "info"\n }\n}\n```\n\n### `PreviewValue`\n\nTyped value for preview display\n\n```ts\ntype PreviewValue = {\n type: "text" | "number" | "boolean" | "list" | "entity" | "badge"\n value?: unknown\n values?: string[]\n id?: string\n name?: string\n schema?: string\n color?: "success" | "warning" | "error" | "info"\n}\n```\n\n### `ToolDefinition`\n\n```ts\ntype ToolDefinition = {\n tool_id?: string\n name?: string\n description?: string\n category?: "entity" | "email" | "taxonomy" | "rag" | "workflow"\n parameters?: object\n returns?: object\n requires_approval?: boolean\n enabled?: boolean\n}\n```\n\n### `SkillCategory`\n\n```ts\ntype SkillCategory = "message" | "entity" | "document" | "classification" | "custom"\n```\n\n### `AgentSource`\n\n- system: Pre-built by epilot (system skills)\n- custom: Created by organization\n\n\n```ts\ntype AgentSource = "system" | "custom"\n```\n\n### `SkillAvailability`\n\nWhere the skill/agent is available:\n- flows: Available in workflow automations\n- copilot: Available as a sub-agent in copilot\n- all: Available everywhere\n\n\n```ts\ntype SkillAvailability = "flows" | "copilot" | "all"\n```\n\n### `ExecutionContext`\n\nWhere the execution was triggered from:\n- flows: Triggered from workflow automation\n- copilot: Triggered from copilot assistant\n- api: Direct API call\n\n\n```ts\ntype ExecutionContext = "flows" | "copilot" | "api"\n```\n\n### `ExecutionPattern`\n\n- direct: Single LLM call, no tools\n- react: Multi-step reasoning with tool use\n\n\n```ts\ntype ExecutionPattern = "direct" | "react"\n```\n\n### `ExecutionMode`\n\n- automatic: Execute without human intervention\n- approval: Pause for human approval before tool execution\n- draft: Execute but mark output as draft for review\n\n\n```ts\ntype ExecutionMode = "automatic" | "approval" | "draft"\n```\n\n### `ExecutionStatus`\n\n```ts\ntype ExecutionStatus = "pending" | "running" | "waiting_approval" | "completed" | "failed" | "cancelled"\n```\n\n### `ParameterType`\n\nBase types:\n- text: Text input field\n- textarea: Multi-line text input field\n- number: Numeric input field\n- boolean: Toggle switch\n- select: Dropdown selection (requires enum array)\n\nCustom types (domain-specific):\n- entity-schema: Entity schema selector (fetches from Entity API)\n- entity-attribute\n\n```ts\ntype ParameterType = "text" | "textarea" | "number" | "boolean" | "select" | "entity-schema" | "entity-attribute" | "entity-id" | "taxonomy" | "taxonomy-classification" | "shared-inbox" | "label"\n```\n\n### `InputParameterDefinition`\n\n```ts\ntype InputParameterDefinition = {\n name: string\n label: string\n type: "text" | "textarea" | "number" | "boolean" | "select" | "entity-schema" | "entity-attribute" | "entity-id" | "taxonomy" | "taxonomy-classification" | "shared-inbox" | "label"\n description?: string\n default?: unknown\n multi?: boolean\n dependsOn?: string\n visibleWhen?: Record<string, unknown[]>\n enum?: string[]\n minimum?: number\n maximum?: number\n step?: number\n minLength?: number\n maxLength?: number\n schemaFilter?: string[]\n attributeTypeFilter?: string[]\n}\n```\n\n### `InputParametersSchema`\n\n```ts\ntype InputParametersSchema = {\n type: "object"\n parameters: Array<{\n name: string\n label: string\n type: "text" | "textarea" | "number" | "boolean" | "select" | "entity-schema" | "entity-attribute" | "entity-id" | "taxonomy" | "taxonomy-classification" | "shared-inbox" | "label"\n description?: string\n default?: unknown\n multi?: boolean\n dependsOn?: string\n visibleWhen?: Record<string, unknown[]>\n enum?: string[]\n minimum?: number\n maximum?: number\n step?: number\n minLength?: number\n maxLength?: number\n schemaFilter?: string[]\n attributeTypeFilter?: string[]\n }>\n required?: string[]\n}\n```\n\n### `ModelConfig`\n\n```ts\ntype ModelConfig = {\n model_id?: string\n temperature?: number\n max_tokens?: number\n}\n```\n\n### `Error`\n\n```ts\ntype Error = {\n error?: string\n message?: string\n details?: object\n}\n```\n';
5
-
6
-
7
- exports.default = ai_agents_default;
@@ -1,14 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
4
-
5
- // src/definitions/file-runtime.json
6
- var require_file_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
- "src/definitions/file-runtime.json"(exports, module) {
8
- module.exports = { s: "https://file.sls.epilot.io", o: [["uploadFileV2", "post", "/v2/files/upload", [["file_entity_id", "q"]], 1], ["saveFileV2", "post", "/v2/files", [["ActivityIdQueryParam"], ["FillActivityQueryParam"], ["StrictQueryParam"], ["AsyncOperationQueryParam"], ["DeleteTempFileQueryParam"], ["VersionOnlyQueryParam"]], 1], ["uploadFile", "post", "/v1/files/upload", [["file_entity_id", "q"]], 1], ["saveFile", "post", "/v1/files", [["ActivityIdQueryParam"], ["AsyncOperationQueryParam"], ["VersionOnlyQueryParam"]], 1], ["getFile", "get", "/v2/files/{id}", [["id", "p", true], ["source_url", "q"], ["StrictQueryParam"], ["AsyncOperationQueryParam"]]], ["deleteFile", "delete", "/v2/files/{id}", [["id", "p", true], ["purge", "q"], ["ActivityIdQueryParam"], ["StrictQueryParam"]]], ["downloadFile", "get", "/v1/files/{id}/download", [["id", "p", true], ["version", "q"], ["attachment", "q"]]], ["downloadS3File", "post", "/v1/files:downloadS3", [["s3_key", "q", true], ["s3_bucket", "q", true], ["attachment", "q"]]], ["downloadFiles", "post", "/v1/files:downloadFiles", null, 1], ["createZipJob", "post", "/v1/files:zipJob", null, 1], ["getZipJob", "get", "/v1/files:zipJob/{job_id}", [["job_id", "p", true]]], ["generateFileSummary", "post", "/v1/files/{id}/summary:generate", [["id", "p", true]]], ["previewFile", "get", "/v1/files/{id}/preview", [["id", "p", true], ["version", "q"], ["w", "q"], ["h", "q"]]], ["previewS3File", "post", "/v1/files:previewS3", [["w", "q"], ["h", "q"]], 1], ["previewS3FileGet", "get", "/v1/files:previewS3", [["key", "q", true], ["bucket", "q", true], ["w", "q"], ["h", "q"]]], ["previewPublicFile", "get", "/v1/files/public/{id}/preview", [["id", "p", true], ["version", "q"], ["w", "q"], ["h", "q"], ["org_id", "q"]]], ["getSession", "get", "/v1/files/session"], ["deleteSession", "delete", "/v1/files/session"], ["generatePublicLink", "post", "/v1/files/{id}/public/links", [["id", "p", true]]], ["listPublicLinksForFile", "get", "/v1/files/{id}/public/links", [["id", "p", true]]], ["accessPublicLink", "get", "/v1/files/public/links/{id}/{filename}", [["id", "p", true], ["filename", "p", true], ["hash", "q"]]], ["revokePublicLink", "delete", "/v1/files/public/links/{id}", [["id", "p", true]]], ["verifyCustomDownloadUrl", "post", "/v1/files/download:verify", null, 1], ["uploadFilePublic", "post", "/v1/files/public/upload", null, 1], ["getUserSchemaFileCollections", "get", "/v1/{slug}/collections", [["slug", "p", true]]], ["createUserSchemaFileCollection", "post", "/v1/{slug}/collections", [["slug", "p", true]], 1], ["updateUserSchemaFileCollection", "put", "/v1/{slug}/collections/{collectionSlug}", [["slug", "p", true], ["collectionSlug", "p", true]], 1], ["deleteUserSchemaFileCollection", "delete", "/v1/{slug}/collections/{collectionSlug}", [["slug", "p", true], ["collectionSlug", "p", true]]], ["getFilesInCollection", "get", "/v1/entity/{id}/collections/{collectionSlug}/files", [["EntityIdPathParam"], ["collectionSlug", "p", true]]], ["getGlobalFileCollections", "get", "/v1/collections/{schemaSlug}", [["schemaSlug", "p", true]]]], v: "3.0.3", cp: { EntityIdPathParam: ["id", "p", true], StrictQueryParam: ["strict", "q"], ActivityIdQueryParam: ["activity_id", "q"], FillActivityQueryParam: ["fill_activity", "q"], AsyncOperationQueryParam: ["async", "q"], DeleteTempFileQueryParam: ["delete_temp_file", "q"], VersionOnlyQueryParam: ["version_only", "q"] } };
9
- }
10
- });
11
-
12
-
13
-
14
- exports.require_file_runtime = require_file_runtime;
@@ -1,14 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
4
-
5
- // src/definitions/customer-portal-runtime.json
6
- var require_customer_portal_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
- "src/definitions/customer-portal-runtime.json"(exports, module) {
8
- module.exports = { s: "https://customer-portal-api.sls.epilot.io", o: [["upsertPortal", "post", "/v2/portal/portal", [["origin", "q", true], ["portal_id", "q"]], 1], ["createUser", "post", "/v2/portal/public/user", [["origin", "q", true]], 1], ["createUserV3", "post", "/v3/portal/public/user", [["portal_id", "q"], ["domain", "q"]], 1], ["validateToken", "post", "/v2/portal/token/validate"], ["revokeToken", "post", "/v2/portal/token/revoke", null, 1], ["getPortalConfigByDomain", "get", "/v2/portal/public/config", [["domain", "q", true]]], ["getPortalConfig", "get", "/v2/portal/config", [["origin", "q"]]], ["deletePortal", "delete", "/v2/portal/config", [["origin", "q", true]]], ["getPortalExtensions", "get", "/v2/portal/extensions", [["origin", "q"]]], ["getPublicPortalExtensionDetails", "get", "/v2/portal/public/extensions", [["org_id", "q", true], ["origin", "q", true]]], ["getPortalExtensionsV3", "get", "/v3/portal/extensions", [["portal_id", "q", true]]], ["getPublicPortalExtensionDetailsV3", "get", "/v3/portal/public/extensions", [["org_id", "q"], ["portal_id", "q"], ["domain", "q"]]], ["getConsumption", "get", "/v2/portal/consumption", [["app_id", "q"], ["extensionId", "q", true], ["hookId", "q"], ["meter_id", "q"], ["from", "q", true], ["to", "q", true], ["interval", "q", true], ["context_entities", "q"]]], ["prepareVisualizationExport", "post", "/v2/portal/visualization:export", null, 1], ["getVisualizationMetadata", "get", "/v2/portal/visualization/metadata", [["app_id", "q", true], ["extensionId", "q", true], ["context_entities", "q"]]], ["getCosts", "get", "/v2/portal/costs", [["app_id", "q"], ["extensionId", "q", true], ["hookId", "q"], ["meter_id", "q"], ["from", "q", true], ["to", "q", true], ["interval", "q", true], ["context_entities", "q"]]], ["getPrices", "get", "/v2/portal/prices", [["app_id", "q"], ["extensionId", "q", true], ["hookId", "q"], ["meter_id", "q"], ["from", "q", true], ["to", "q", true], ["interval", "q", true], ["context_entities", "q"]]], ["getExternalLinks", "get", "/v2/portal/external-links", [["origin", "q"], ["contactId", "q"]]], ["getResolvedExternalLink", "get", "/v2/portal/resolve:external-link/{id}", [["id", "p", true], ["origin", "q"], ["contactId", "q"]]], ["getExternalLinksV3", "get", "/v3/portal/external-links", [["portal_id", "q"], ["contactId", "q"]]], ["getResolvedExternalLinkV3", "get", "/v3/portal/resolve:external-link/{id}", [["id", "p", true], ["portal_id", "q"], ["contactId", "q"]]], ["getResolvedSeamlessLink", "get", "/v2/portal/resolve:seamless-link", [["app_id", "q"], ["extension_id", "q", true], ["link_id", "q", true], ["context_entities", "q"]]], ["getPublicPortalConfig", "get", "/v2/portal/public/portal/config", [["org_id", "q", true], ["origin", "q", true]]], ["getOrgPortalConfig", "get", "/v2/portal/org/portal/config", [["origin", "q", true]]], ["getPublicPortalConfigV3", "get", "/v3/portal/public/portal/config", [["org_id", "q", true], ["portal_id", "q", true]]], ["getOrgPortalConfigV3", "get", "/v3/portal/org/portal/config", [["portal_id", "q", true]]], ["getAllPortalConfigs", "get", "/v2/portal/configs"], ["upsertEmailTemplates", "post", "/v2/portal/email-templates", [["origin", "q", true]], 1], ["getEmailTemplates", "get", "/v2/portal/email-templates", [["origin", "q", true]]], ["upsertEmailTemplatesByPortalId", "post", "/v3/portal/email-templates/{portal_id}", [["portal_id", "p", true]], 1], ["getEmailTemplatesByPortalId", "get", "/v3/portal/email-templates/{portal_id}", [["portal_id", "p", true]]], ["getPublicPortalWidgets", "get", "/v2/portal/public-widgets", [["org_id", "q", true], ["origin", "q", true]]], ["getPublicPortalWidgetsV3", "get", "/v3/portal/public/widgets", [["org_id", "q"], ["portal_id", "q"], ["domain", "q"]]], ["upsertPortalWidget", "post", "/v2/portal/widgets", [["origin", "q", true]], 1], ["getPortalWidgets", "get", "/v2/portal/widgets", [["origin", "q"], ["contract_id", "q"]]], ["getPortalWidgetsV3", "get", "/v3/portal/widgets", [["portal_id", "q", true], ["contract_id", "q"]]], ["upsertPortalWidgetV3", "post", "/v3/portal/widgets", [["portal_id", "q", true]], 1], ["savePortalFilesV3", "post", "/v3/portal/portal/files", [["portal_id", "q", true]], 1], ["replaceECPTemplateVariables", "post", "/v2/portal/replace-ecp-template-variables", null, 1], ["getOrganizationSettings", "get", "/v2/portal/org/settings"], ["getSchemas", "get", "/v2/portal/schemas"], ["getSchemasByDomain", "get", "/v2/portal/public/schemas", [["domain", "q", true]]], ["getPublicSchemasV3", "get", "/v3/portal/public/schemas", [["org_id", "q"], ["portal_id", "q"], ["domain", "q"]]], ["getOrganizationSettingsByDomain", "get", "/v2/portal/public/org/settings", [["domain", "q", true]]], ["extraPermissionAttributes", "get", "/v2/portal/extra-permission-attributes"], ["validateCaaRecords", "post", "/v2/portal/validate/caa-records", [["origin", "q", true]]], ["validateCaaRecordsV3", "post", "/v3/portal/validate/caa-records", [["portal_id", "q", true]]], ["getContact", "get", "/v2/portal/contact"], ["updateContact", "patch", "/v2/portal/contact", null, 1], ["getECPContact", "get", "/v2/portal/ecp/contact", [["id", "q", true]]], ["checkContactExists", "post", "/v2/portal/public/contact/exists", [["origin", "q", true]], 1], ["checkContactExistsV3", "post", "/v3/portal/public/contact/exists", [["portal_id", "q"], ["domain", "q"]], 1], ["checkAccountExists", "post", "/v3/portal/public/account/exists", [["portal_id", "q"], ["domain", "q"]], 1], ["getValidSecondaryAttributes", "get", "/v2/portal/contact/valid/secondary/attributes"], ["getPortalUser", "get", "/v2/portal/user"], ["updatePortalUser", "patch", "/v2/portal/user", null, 1], ["deletePortalUser", "delete", "/v2/portal/user"], ["updatePortalUserEmail", "put", "/v2/portal/user/update/email", null, 1], ["resendConfirmationEmail", "post", "/v2/portal/user/resend/confirmation-email/{id}", [["id", "p", true]]], ["fetchPortalUsersByRelatedEntity", "get", "/v2/portal/users/by-related-entity", [["entity_id", "q", true], ["slug", "q", true]]], ["confirmUser", "get", "/v2/portal/user/confirm", [["confirmation_link_token", "q", true], ["use_redirect", "q"]]], ["confirmUserWithUserId", "get", "/v2/portal/user/confirm/{id}", [["origin", "q", true], ["id", "p", true], ["org_id", "q", true]]], ["userExists", "get", "/v2/portal/public/user/exists", [["email", "q", true], ["org_id", "q", true], ["origin", "q"]]], ["userExistsV3", "get", "/v3/portal/public/user/exists", [["email", "q", true], ["org_id", "q"], ["portal_id", "q"], ["domain", "q"]]], ["getRecipientsToNotifyOnAutomation", "post", "/v2/portal/recipients-to-notify", null, 1], ["configureDistribution", "get", "/v2/portal/configure-distribution", [["origin", "q", true]]], ["configureDistributionV3", "get", "/v3/portal/configure-distribution", [["portal_id", "q", true]]], ["getAllOrders", "get", "/v2/portal/order", [["from", "q"], ["size", "q"]]], ["postOrderAcceptance", "post", "/v2/portal/order/{id}/acceptance", [["id", "p", true]], 1], ["getOrder", "get", "/v2/portal/order/{id}", [["id", "p", true]]], ["updateOrder", "patch", "/v2/portal/order/{id}", [["id", "p", true]], 1], ["getAllOpportunities", "get", "/v2/portal/opportunity", [["from", "q"], ["size", "q"]]], ["getSearchableAttributesForOpportunities", "get", "/v2/portal/opportunities/searchable-attributes", [["from", "q"], ["size", "q"]]], ["getSearchResultsForOpportunities", "post", "/v2/portal/opportunities/search", [["from", "q"], ["size", "q"]], 1], ["getOpportunity", "get", "/v2/portal/opportunities/{id}", [["id", "p", true]]], ["updateOpportunity", "patch", "/v2/portal/opportunities/{id}", [["id", "p", true]], 1], ["getAllRequests", "get", "/v2/portal/request", [["from", "q"], ["size", "q"]]], ["getAllContracts", "get", "/v2/portal/contract", [["from", "q"], ["size", "q"]]], ["getContract", "get", "/v2/portal/contract/{id}", [["id", "p", true]]], ["updateContract", "patch", "/v2/portal/contract/{id}", [["id", "p", true]], 1], ["addContractByIdentifiers", "post", "/v2/portal/contract/by-identifiers", null, 1], ["getEntityIdentifiers", "get", "/v2/portal/entity/identifiers/{slug}", [["slug", "p", true]]], ["getEntityActivityFeed", "get", "/v2/portal/entity/{slug}/{id}/activity", [["slug", "p", true], ["id", "p", true], ["after", "q"], ["before", "q"], ["from", "q"], ["size", "q"], ["type", "q"], ["include_relations", "q"]]], ["validateCadenceEntityEditRules", "get", "/v2/portal/{slug}/{id}:validateRule", [["slug", "p", true], ["id", "p", true], ["attribute", "q"]]], ["searchPaymentRelationsInEntities", "get", "/v2/portal/entities-by-payment/{id}", [["id", "p", true]]], ["createCustomEntityActivity", "put", "/v2/portal/entity/activity", [["entities", "q", false, "form"]], 1], ["saveEntityFile", "post", "/v2/portal/entity/file", null, 1], ["deleteEntityFile", "delete", "/v2/portal/entity/file", null, 1], ["savePortalFiles", "post", "/v2/portal/portal/files", null, 1], ["getRegistrationIdentifiers", "get", "/v2/portal/registration/identifiers"], ["getAllFiles", "get", "/v2/portal/user/files", [["from", "q", true], ["size", "q", true], ["entity_ids", "q"], ["file_types", "q"]]], ["getFileById", "get", "/v2/portal/user/file/{id}", [["id", "p", true]]], ["trackFileDownloaded", "post", "/v2/portal/user/file/{id}/downloaded", [["id", "p", true]]], ["getFilesCountByEntity", "get", "/v2/portal/user/files/count-by-entity"], ["getBillingEvents", "get", "/v2/portal/billing/events", [["from", "q"], ["size", "q"], ["entity_id", "q"], ["event_type", "q"], ["paid", "q"], ["date_after", "q"], ["date_before", "q"], ["sort", "q"]]], ["getCustomerBalance", "get", "/v2/portal/billing/customers/balance"], ["getBillingAccount", "get", "/v2/portal/billing/accounts/{id}"], ["loginToPortalAsUser", "post", "/v2/portal/admin:login-as-user", null, 1], ["triggerEntityAccessEvent", "post", "/v2/portal/entity/{schema}/access", [["schema", "p", true], ["entity_id", "q"], ["origin", "q", true]]], ["triggerEntityAccessEventV3", "post", "/v3/portal/entity/{schema}/access", [["schema", "p", true], ["entity_id", "q"], ["portal_id", "q"], ["domain", "q"]]], ["getPortalUserEntity", "post", "/v2/portal/entity:get", null, 1], ["searchPortalUserEntities", "post", "/v2/portal/entity:search", null, 1], ["canTriggerPortalFlow", "post", "/v2/portal/can-trigger-portal-flow", [["origin", "q"], ["portal_id", "q", true]], 1], ["getAutomationContext", "get", "/v2/portal/automation-context", [["activity_id", "q", true], ["type", "q", true]]], ["updateWorkflowStepAsDone", "put", "/v2/portal/workflow/{workflow_id}/{step_id}:markDone", [["workflow_id", "p", true], ["step_id", "p", true]]], ["getEntityWorkflows", "get", "/v2/portal/entity/{slug}/{id}/workflows", [["slug", "p", true], ["id", "p", true]]], ["uploadMeterReadingPhoto", "post", "/v2/portal/metering/reading/photo", null, 1], ["createMeterReading", "post", "/v2/portal/metering/reading", [["override_plausibility", "q"]], 1], ["getAllowedMeterReadingRange", "get", "/v2/portal/metering/reading/allowed-range/{meter_id}", [["meter_id", "p", true], ["origin", "q"], ["timestamp", "q"], ["context_entities", "q"]]], ["getMeterReadings", "post", "/v2/portal/metering/readings", null, 1], ["getSSOProvider", "get", "/v2/portal/public/sso/providers/{provider_slug}", [["provider_slug", "p", true], ["org_id", "q"], ["origin", "q"], ["portal_id", "q"], ["domain", "q"]]], ["ssoLogin", "post", "/v2/portal/public/sso/login", [["origin", "q", true], ["org_id", "q", true], ["contact_id", "q"]], 1], ["ssoLoginV3", "post", "/v3/portal/public/sso/login", [["portal_id", "q"], ["org_id", "q"], ["domain", "q"], ["contact_id", "q"]], 1], ["ssoRedirect", "post", "/v2/portal/public/sso/redirect", [["web_uri", "q", true]], 1], ["ssoCallback", "post", "/v2/portal/public/sso/callback", [["domain", "q"]], 1], ["getPortalPage", "get", "/v2/portal/pages/{id}"], ["updatePortalPage", "put", "/v2/portal/pages/{id}", null, 1], ["deletePortalPage", "delete", "/v2/portal/pages/{id}"], ["getPortalPages", "get", "/v2/portal/pages", [["fields", "q"], ["filter", "q"], ["contract_id", "q"], ["context_entities", "q"]]], ["createPortalPage", "post", "/v2/portal/pages", null, 1], ["getPublicPages", "get", "/v2/portal/public/pages", [["domain", "q", true], ["fields", "q"], ["filter", "q"]]], ["interpolatePortalPages", "post", "/v2/portal/pages/interpolate", null, 1], ["getTriggeredJourney", "get", "/v2/portal/config/triggered-journeys/{trigger_name}", [["context_entities", "q"]]], ["getDefaultPages", "get", "/v2/portal/pages/default"], ["createPortalPageBlock", "post", "/v2/portal/pages/{id}/blocks", null, 1], ["getPortalPageBlocks", "get", "/v2/portal/pages/{id}/blocks"], ["getPortalPageBlock", "get", "/v2/portal/pages/{id}/blocks/{block_id}"], ["updatePortalPageBlock", "put", "/v2/portal/pages/{id}/blocks/{block_id}", null, 1], ["deletePortalPageBlock", "delete", "/v2/portal/pages/{id}/blocks/{block_id}"], ["getUserEntryPoint", "get", "/v2/portal/public/user/entry-point", [["email", "q", true], ["domain", "q", true]]], ["updateCampaignPortalBlockStatus", "put", "/v2/portal/campaign/{campaign_id}/entity:status", [["campaign_id", "p", true]], 1], ["updateNotificationsStatus", "put", "/v2/portal/notifications/entity:status", null, 1], ["deRegisterMLoginUser", "delete", "/v2/portal/public/m-login/deregister/{client_id}/{user_id}", [["client_id", "p", true], ["user_id", "p", true]]], ["notifyMLoginInterestChange", "post", "/v2/portal/public/m-login/notify-interest-change/{client_id}/{user_id}", [["client_id", "p", true], ["user_id", "p", true]], 1], ["createPortalConfig", "post", "/v3/portal/config", null, 1], ["getPortalConfigV3", "get", "/v3/portal/config/{portal_id}", [["portal_id", "p", true]]], ["putPortalConfig", "put", "/v3/portal/config/{portal_id}", [["portal_id", "p", true]], 1], ["deletePortalConfig", "delete", "/v3/portal/config/{portal_id}", [["portal_id", "p", true]]], ["listAllPortalConfigs", "get", "/v3/portal/configs"], ["swapPortalConfig", "post", "/v3/portal/config/swap", null, 1], ["clonePortalConfig", "post", "/v3/portal/config/clone", null, 1], ["invitePartner", "post", "/v3/portal/partner/invite", null, 1], ["listBusinessPartners", "get", "/v3/portal/partner/list"], ["resendPartnerInvitation", "post", "/v3/portal/partner/{partner_id}/resend-invitation", [["partner_id", "p", true]]], ["revokePartner", "delete", "/v3/portal/partner/{partner_id}/revoke", [["partner_id", "p", true]]], ["disablePartner", "post", "/v3/portal/partner/{partner_id}/disable", [["partner_id", "p", true]]], ["enablePartner", "post", "/v3/portal/partner/{partner_id}/enable", [["partner_id", "p", true]]], ["verifyDns", "post", "/v3/portal/verify-dns", [["portal_id", "q", true]]], ["portalProxyExecute", "post", "/v2/portal/proxy/execute", null, 1]], v: "3.0.3", pp: { "/v2/portal/billing/accounts/{id}": [["id", "p", true]], "/v2/portal/pages/{id}": [["id", "p", true]], "/v2/portal/pages": [["domain", "q", true]], "/v2/portal/config/triggered-journeys/{trigger_name}": [["trigger_name", "p", true]], "/v2/portal/pages/{id}/blocks": [["id", "p", true]], "/v2/portal/pages/{id}/blocks/{block_id}": [["id", "p", true], ["block_id", "p", true]] } };
9
- }
10
- });
11
-
12
-
13
-
14
- exports.require_customer_portal_runtime = require_customer_portal_runtime;
@@ -1,14 +0,0 @@
1
- import {
2
- __commonJS
3
- } from "./chunk-YPSWSI3M.js";
4
-
5
- // src/definitions/customer-portal-runtime.json
6
- var require_customer_portal_runtime = __commonJS({
7
- "src/definitions/customer-portal-runtime.json"(exports, module) {
8
- module.exports = { s: "https://customer-portal-api.sls.epilot.io", o: [["upsertPortal", "post", "/v2/portal/portal", [["origin", "q", true], ["portal_id", "q"]], 1], ["createUser", "post", "/v2/portal/public/user", [["origin", "q", true]], 1], ["createUserV3", "post", "/v3/portal/public/user", [["portal_id", "q"], ["domain", "q"]], 1], ["validateToken", "post", "/v2/portal/token/validate"], ["revokeToken", "post", "/v2/portal/token/revoke", null, 1], ["getPortalConfigByDomain", "get", "/v2/portal/public/config", [["domain", "q", true]]], ["getPortalConfig", "get", "/v2/portal/config", [["origin", "q"]]], ["deletePortal", "delete", "/v2/portal/config", [["origin", "q", true]]], ["getPortalExtensions", "get", "/v2/portal/extensions", [["origin", "q"]]], ["getPublicPortalExtensionDetails", "get", "/v2/portal/public/extensions", [["org_id", "q", true], ["origin", "q", true]]], ["getPortalExtensionsV3", "get", "/v3/portal/extensions", [["portal_id", "q", true]]], ["getPublicPortalExtensionDetailsV3", "get", "/v3/portal/public/extensions", [["org_id", "q"], ["portal_id", "q"], ["domain", "q"]]], ["getConsumption", "get", "/v2/portal/consumption", [["app_id", "q"], ["extensionId", "q", true], ["hookId", "q"], ["meter_id", "q"], ["from", "q", true], ["to", "q", true], ["interval", "q", true], ["context_entities", "q"]]], ["prepareVisualizationExport", "post", "/v2/portal/visualization:export", null, 1], ["getVisualizationMetadata", "get", "/v2/portal/visualization/metadata", [["app_id", "q", true], ["extensionId", "q", true], ["context_entities", "q"]]], ["getCosts", "get", "/v2/portal/costs", [["app_id", "q"], ["extensionId", "q", true], ["hookId", "q"], ["meter_id", "q"], ["from", "q", true], ["to", "q", true], ["interval", "q", true], ["context_entities", "q"]]], ["getPrices", "get", "/v2/portal/prices", [["app_id", "q"], ["extensionId", "q", true], ["hookId", "q"], ["meter_id", "q"], ["from", "q", true], ["to", "q", true], ["interval", "q", true], ["context_entities", "q"]]], ["getExternalLinks", "get", "/v2/portal/external-links", [["origin", "q"], ["contactId", "q"]]], ["getResolvedExternalLink", "get", "/v2/portal/resolve:external-link/{id}", [["id", "p", true], ["origin", "q"], ["contactId", "q"]]], ["getExternalLinksV3", "get", "/v3/portal/external-links", [["portal_id", "q"], ["contactId", "q"]]], ["getResolvedExternalLinkV3", "get", "/v3/portal/resolve:external-link/{id}", [["id", "p", true], ["portal_id", "q"], ["contactId", "q"]]], ["getResolvedSeamlessLink", "get", "/v2/portal/resolve:seamless-link", [["app_id", "q"], ["extension_id", "q", true], ["link_id", "q", true], ["context_entities", "q"]]], ["getPublicPortalConfig", "get", "/v2/portal/public/portal/config", [["org_id", "q", true], ["origin", "q", true]]], ["getOrgPortalConfig", "get", "/v2/portal/org/portal/config", [["origin", "q", true]]], ["getPublicPortalConfigV3", "get", "/v3/portal/public/portal/config", [["org_id", "q", true], ["portal_id", "q", true]]], ["getOrgPortalConfigV3", "get", "/v3/portal/org/portal/config", [["portal_id", "q", true]]], ["getAllPortalConfigs", "get", "/v2/portal/configs"], ["upsertEmailTemplates", "post", "/v2/portal/email-templates", [["origin", "q", true]], 1], ["getEmailTemplates", "get", "/v2/portal/email-templates", [["origin", "q", true]]], ["upsertEmailTemplatesByPortalId", "post", "/v3/portal/email-templates/{portal_id}", [["portal_id", "p", true]], 1], ["getEmailTemplatesByPortalId", "get", "/v3/portal/email-templates/{portal_id}", [["portal_id", "p", true]]], ["getPublicPortalWidgets", "get", "/v2/portal/public-widgets", [["org_id", "q", true], ["origin", "q", true]]], ["getPublicPortalWidgetsV3", "get", "/v3/portal/public/widgets", [["org_id", "q"], ["portal_id", "q"], ["domain", "q"]]], ["upsertPortalWidget", "post", "/v2/portal/widgets", [["origin", "q", true]], 1], ["getPortalWidgets", "get", "/v2/portal/widgets", [["origin", "q"], ["contract_id", "q"]]], ["getPortalWidgetsV3", "get", "/v3/portal/widgets", [["portal_id", "q", true], ["contract_id", "q"]]], ["upsertPortalWidgetV3", "post", "/v3/portal/widgets", [["portal_id", "q", true]], 1], ["savePortalFilesV3", "post", "/v3/portal/portal/files", [["portal_id", "q", true]], 1], ["replaceECPTemplateVariables", "post", "/v2/portal/replace-ecp-template-variables", null, 1], ["getOrganizationSettings", "get", "/v2/portal/org/settings"], ["getSchemas", "get", "/v2/portal/schemas"], ["getSchemasByDomain", "get", "/v2/portal/public/schemas", [["domain", "q", true]]], ["getPublicSchemasV3", "get", "/v3/portal/public/schemas", [["org_id", "q"], ["portal_id", "q"], ["domain", "q"]]], ["getOrganizationSettingsByDomain", "get", "/v2/portal/public/org/settings", [["domain", "q", true]]], ["extraPermissionAttributes", "get", "/v2/portal/extra-permission-attributes"], ["validateCaaRecords", "post", "/v2/portal/validate/caa-records", [["origin", "q", true]]], ["validateCaaRecordsV3", "post", "/v3/portal/validate/caa-records", [["portal_id", "q", true]]], ["getContact", "get", "/v2/portal/contact"], ["updateContact", "patch", "/v2/portal/contact", null, 1], ["getECPContact", "get", "/v2/portal/ecp/contact", [["id", "q", true]]], ["checkContactExists", "post", "/v2/portal/public/contact/exists", [["origin", "q", true]], 1], ["checkContactExistsV3", "post", "/v3/portal/public/contact/exists", [["portal_id", "q"], ["domain", "q"]], 1], ["checkAccountExists", "post", "/v3/portal/public/account/exists", [["portal_id", "q"], ["domain", "q"]], 1], ["getValidSecondaryAttributes", "get", "/v2/portal/contact/valid/secondary/attributes"], ["getPortalUser", "get", "/v2/portal/user"], ["updatePortalUser", "patch", "/v2/portal/user", null, 1], ["deletePortalUser", "delete", "/v2/portal/user"], ["updatePortalUserEmail", "put", "/v2/portal/user/update/email", null, 1], ["resendConfirmationEmail", "post", "/v2/portal/user/resend/confirmation-email/{id}", [["id", "p", true]]], ["fetchPortalUsersByRelatedEntity", "get", "/v2/portal/users/by-related-entity", [["entity_id", "q", true], ["slug", "q", true]]], ["confirmUser", "get", "/v2/portal/user/confirm", [["confirmation_link_token", "q", true], ["use_redirect", "q"]]], ["confirmUserWithUserId", "get", "/v2/portal/user/confirm/{id}", [["origin", "q", true], ["id", "p", true], ["org_id", "q", true]]], ["userExists", "get", "/v2/portal/public/user/exists", [["email", "q", true], ["org_id", "q", true], ["origin", "q"]]], ["userExistsV3", "get", "/v3/portal/public/user/exists", [["email", "q", true], ["org_id", "q"], ["portal_id", "q"], ["domain", "q"]]], ["getRecipientsToNotifyOnAutomation", "post", "/v2/portal/recipients-to-notify", null, 1], ["configureDistribution", "get", "/v2/portal/configure-distribution", [["origin", "q", true]]], ["configureDistributionV3", "get", "/v3/portal/configure-distribution", [["portal_id", "q", true]]], ["getAllOrders", "get", "/v2/portal/order", [["from", "q"], ["size", "q"]]], ["postOrderAcceptance", "post", "/v2/portal/order/{id}/acceptance", [["id", "p", true]], 1], ["getOrder", "get", "/v2/portal/order/{id}", [["id", "p", true]]], ["updateOrder", "patch", "/v2/portal/order/{id}", [["id", "p", true]], 1], ["getAllOpportunities", "get", "/v2/portal/opportunity", [["from", "q"], ["size", "q"]]], ["getSearchableAttributesForOpportunities", "get", "/v2/portal/opportunities/searchable-attributes", [["from", "q"], ["size", "q"]]], ["getSearchResultsForOpportunities", "post", "/v2/portal/opportunities/search", [["from", "q"], ["size", "q"]], 1], ["getOpportunity", "get", "/v2/portal/opportunities/{id}", [["id", "p", true]]], ["updateOpportunity", "patch", "/v2/portal/opportunities/{id}", [["id", "p", true]], 1], ["getAllRequests", "get", "/v2/portal/request", [["from", "q"], ["size", "q"]]], ["getAllContracts", "get", "/v2/portal/contract", [["from", "q"], ["size", "q"]]], ["getContract", "get", "/v2/portal/contract/{id}", [["id", "p", true]]], ["updateContract", "patch", "/v2/portal/contract/{id}", [["id", "p", true]], 1], ["addContractByIdentifiers", "post", "/v2/portal/contract/by-identifiers", null, 1], ["getEntityIdentifiers", "get", "/v2/portal/entity/identifiers/{slug}", [["slug", "p", true]]], ["getEntityActivityFeed", "get", "/v2/portal/entity/{slug}/{id}/activity", [["slug", "p", true], ["id", "p", true], ["after", "q"], ["before", "q"], ["from", "q"], ["size", "q"], ["type", "q"], ["include_relations", "q"]]], ["validateCadenceEntityEditRules", "get", "/v2/portal/{slug}/{id}:validateRule", [["slug", "p", true], ["id", "p", true], ["attribute", "q"]]], ["searchPaymentRelationsInEntities", "get", "/v2/portal/entities-by-payment/{id}", [["id", "p", true]]], ["createCustomEntityActivity", "put", "/v2/portal/entity/activity", [["entities", "q", false, "form"]], 1], ["saveEntityFile", "post", "/v2/portal/entity/file", null, 1], ["deleteEntityFile", "delete", "/v2/portal/entity/file", null, 1], ["savePortalFiles", "post", "/v2/portal/portal/files", null, 1], ["getRegistrationIdentifiers", "get", "/v2/portal/registration/identifiers"], ["getAllFiles", "get", "/v2/portal/user/files", [["from", "q", true], ["size", "q", true], ["entity_ids", "q"], ["file_types", "q"]]], ["getFileById", "get", "/v2/portal/user/file/{id}", [["id", "p", true]]], ["trackFileDownloaded", "post", "/v2/portal/user/file/{id}/downloaded", [["id", "p", true]]], ["getFilesCountByEntity", "get", "/v2/portal/user/files/count-by-entity"], ["getBillingEvents", "get", "/v2/portal/billing/events", [["from", "q"], ["size", "q"], ["entity_id", "q"], ["event_type", "q"], ["paid", "q"], ["date_after", "q"], ["date_before", "q"], ["sort", "q"]]], ["getCustomerBalance", "get", "/v2/portal/billing/customers/balance"], ["getBillingAccount", "get", "/v2/portal/billing/accounts/{id}"], ["loginToPortalAsUser", "post", "/v2/portal/admin:login-as-user", null, 1], ["triggerEntityAccessEvent", "post", "/v2/portal/entity/{schema}/access", [["schema", "p", true], ["entity_id", "q"], ["origin", "q", true]]], ["triggerEntityAccessEventV3", "post", "/v3/portal/entity/{schema}/access", [["schema", "p", true], ["entity_id", "q"], ["portal_id", "q"], ["domain", "q"]]], ["getPortalUserEntity", "post", "/v2/portal/entity:get", null, 1], ["searchPortalUserEntities", "post", "/v2/portal/entity:search", null, 1], ["canTriggerPortalFlow", "post", "/v2/portal/can-trigger-portal-flow", [["origin", "q"], ["portal_id", "q", true]], 1], ["getAutomationContext", "get", "/v2/portal/automation-context", [["activity_id", "q", true], ["type", "q", true]]], ["updateWorkflowStepAsDone", "put", "/v2/portal/workflow/{workflow_id}/{step_id}:markDone", [["workflow_id", "p", true], ["step_id", "p", true]]], ["getEntityWorkflows", "get", "/v2/portal/entity/{slug}/{id}/workflows", [["slug", "p", true], ["id", "p", true]]], ["uploadMeterReadingPhoto", "post", "/v2/portal/metering/reading/photo", null, 1], ["createMeterReading", "post", "/v2/portal/metering/reading", [["override_plausibility", "q"]], 1], ["getAllowedMeterReadingRange", "get", "/v2/portal/metering/reading/allowed-range/{meter_id}", [["meter_id", "p", true], ["origin", "q"], ["timestamp", "q"], ["context_entities", "q"]]], ["getMeterReadings", "post", "/v2/portal/metering/readings", null, 1], ["getSSOProvider", "get", "/v2/portal/public/sso/providers/{provider_slug}", [["provider_slug", "p", true], ["org_id", "q"], ["origin", "q"], ["portal_id", "q"], ["domain", "q"]]], ["ssoLogin", "post", "/v2/portal/public/sso/login", [["origin", "q", true], ["org_id", "q", true], ["contact_id", "q"]], 1], ["ssoLoginV3", "post", "/v3/portal/public/sso/login", [["portal_id", "q"], ["org_id", "q"], ["domain", "q"], ["contact_id", "q"]], 1], ["ssoRedirect", "post", "/v2/portal/public/sso/redirect", [["web_uri", "q", true]], 1], ["ssoCallback", "post", "/v2/portal/public/sso/callback", [["domain", "q"]], 1], ["getPortalPage", "get", "/v2/portal/pages/{id}"], ["updatePortalPage", "put", "/v2/portal/pages/{id}", null, 1], ["deletePortalPage", "delete", "/v2/portal/pages/{id}"], ["getPortalPages", "get", "/v2/portal/pages", [["fields", "q"], ["filter", "q"], ["contract_id", "q"], ["context_entities", "q"]]], ["createPortalPage", "post", "/v2/portal/pages", null, 1], ["getPublicPages", "get", "/v2/portal/public/pages", [["domain", "q", true], ["fields", "q"], ["filter", "q"]]], ["interpolatePortalPages", "post", "/v2/portal/pages/interpolate", null, 1], ["getTriggeredJourney", "get", "/v2/portal/config/triggered-journeys/{trigger_name}", [["context_entities", "q"]]], ["getDefaultPages", "get", "/v2/portal/pages/default"], ["createPortalPageBlock", "post", "/v2/portal/pages/{id}/blocks", null, 1], ["getPortalPageBlocks", "get", "/v2/portal/pages/{id}/blocks"], ["getPortalPageBlock", "get", "/v2/portal/pages/{id}/blocks/{block_id}"], ["updatePortalPageBlock", "put", "/v2/portal/pages/{id}/blocks/{block_id}", null, 1], ["deletePortalPageBlock", "delete", "/v2/portal/pages/{id}/blocks/{block_id}"], ["getUserEntryPoint", "get", "/v2/portal/public/user/entry-point", [["email", "q", true], ["domain", "q", true]]], ["updateCampaignPortalBlockStatus", "put", "/v2/portal/campaign/{campaign_id}/entity:status", [["campaign_id", "p", true]], 1], ["updateNotificationsStatus", "put", "/v2/portal/notifications/entity:status", null, 1], ["deRegisterMLoginUser", "delete", "/v2/portal/public/m-login/deregister/{client_id}/{user_id}", [["client_id", "p", true], ["user_id", "p", true]]], ["notifyMLoginInterestChange", "post", "/v2/portal/public/m-login/notify-interest-change/{client_id}/{user_id}", [["client_id", "p", true], ["user_id", "p", true]], 1], ["createPortalConfig", "post", "/v3/portal/config", null, 1], ["getPortalConfigV3", "get", "/v3/portal/config/{portal_id}", [["portal_id", "p", true]]], ["putPortalConfig", "put", "/v3/portal/config/{portal_id}", [["portal_id", "p", true]], 1], ["deletePortalConfig", "delete", "/v3/portal/config/{portal_id}", [["portal_id", "p", true]]], ["listAllPortalConfigs", "get", "/v3/portal/configs"], ["swapPortalConfig", "post", "/v3/portal/config/swap", null, 1], ["clonePortalConfig", "post", "/v3/portal/config/clone", null, 1], ["invitePartner", "post", "/v3/portal/partner/invite", null, 1], ["listBusinessPartners", "get", "/v3/portal/partner/list"], ["resendPartnerInvitation", "post", "/v3/portal/partner/{partner_id}/resend-invitation", [["partner_id", "p", true]]], ["revokePartner", "delete", "/v3/portal/partner/{partner_id}/revoke", [["partner_id", "p", true]]], ["disablePartner", "post", "/v3/portal/partner/{partner_id}/disable", [["partner_id", "p", true]]], ["enablePartner", "post", "/v3/portal/partner/{partner_id}/enable", [["partner_id", "p", true]]], ["verifyDns", "post", "/v3/portal/verify-dns", [["portal_id", "q", true]]], ["portalProxyExecute", "post", "/v2/portal/proxy/execute", null, 1]], v: "3.0.3", pp: { "/v2/portal/billing/accounts/{id}": [["id", "p", true]], "/v2/portal/pages/{id}": [["id", "p", true]], "/v2/portal/pages": [["domain", "q", true]], "/v2/portal/config/triggered-journeys/{trigger_name}": [["trigger_name", "p", true]], "/v2/portal/pages/{id}/blocks": [["id", "p", true]], "/v2/portal/pages/{id}/blocks/{block_id}": [["id", "p", true], ["block_id", "p", true]] } };
9
- }
10
- });
11
-
12
- export {
13
- require_customer_portal_runtime
14
- };
@@ -1,14 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
4
-
5
- // src/definitions/ai-agents-runtime.json
6
- var require_ai_agents_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
- "src/definitions/ai-agents-runtime.json"(exports, module) {
8
- module.exports = { s: "https://ai-agents.sls.epilot.io", o: [["createAgent", "post", "/v1/agents", null, 1], ["listAgents", "get", "/v1/agents", [["source", "q"], ["availability", "q"], ["entity_schema", "q"]]], ["getAgentById", "get", "/v1/agents/{agent_id}", [["agent_id", "p", true]]], ["updateAgentById", "put", "/v1/agents/{agent_id}", [["agent_id", "p", true]], 1], ["deleteAgentById", "delete", "/v1/agents/{agent_id}", [["agent_id", "p", true]]], ["executeAgent", "post", "/v1/agents/{agent_id}/execute", [["agent_id", "p", true]], 1], ["listExecutions", "get", "/v1/executions", [["agent_id", "q"], ["status", "q"], ["limit", "q"]]], ["getExecution", "get", "/v1/executions/{execution_id}", [["execution_id", "p", true]]], ["cancelExecution", "delete", "/v1/executions/{execution_id}", [["execution_id", "p", true]]], ["getExecutionTrace", "get", "/v1/executions/{execution_id}/trace", [["execution_id", "p", true]]], ["approveExecution", "post", "/v1/executions/{execution_id}/approve", [["execution_id", "p", true]], 1], ["rejectExecution", "post", "/v1/executions/{execution_id}/reject", [["execution_id", "p", true]], 1]], v: "3.0.0" };
9
- }
10
- });
11
-
12
-
13
-
14
- exports.require_ai_agents_runtime = require_ai_agents_runtime;
@@ -1,14 +0,0 @@
1
- import {
2
- __commonJS
3
- } from "./chunk-YPSWSI3M.js";
4
-
5
- // src/definitions/ai-agents-runtime.json
6
- var require_ai_agents_runtime = __commonJS({
7
- "src/definitions/ai-agents-runtime.json"(exports, module) {
8
- module.exports = { s: "https://ai-agents.sls.epilot.io", o: [["createAgent", "post", "/v1/agents", null, 1], ["listAgents", "get", "/v1/agents", [["source", "q"], ["availability", "q"], ["entity_schema", "q"]]], ["getAgentById", "get", "/v1/agents/{agent_id}", [["agent_id", "p", true]]], ["updateAgentById", "put", "/v1/agents/{agent_id}", [["agent_id", "p", true]], 1], ["deleteAgentById", "delete", "/v1/agents/{agent_id}", [["agent_id", "p", true]]], ["executeAgent", "post", "/v1/agents/{agent_id}/execute", [["agent_id", "p", true]], 1], ["listExecutions", "get", "/v1/executions", [["agent_id", "q"], ["status", "q"], ["limit", "q"]]], ["getExecution", "get", "/v1/executions/{execution_id}", [["execution_id", "p", true]]], ["cancelExecution", "delete", "/v1/executions/{execution_id}", [["execution_id", "p", true]]], ["getExecutionTrace", "get", "/v1/executions/{execution_id}/trace", [["execution_id", "p", true]]], ["approveExecution", "post", "/v1/executions/{execution_id}/approve", [["execution_id", "p", true]], 1], ["rejectExecution", "post", "/v1/executions/{execution_id}/reject", [["execution_id", "p", true]], 1]], v: "3.0.0" };
9
- }
10
- });
11
-
12
- export {
13
- require_ai_agents_runtime
14
- };
@@ -1,14 +0,0 @@
1
- import {
2
- __commonJS
3
- } from "./chunk-YPSWSI3M.js";
4
-
5
- // src/definitions/file-runtime.json
6
- var require_file_runtime = __commonJS({
7
- "src/definitions/file-runtime.json"(exports, module) {
8
- module.exports = { s: "https://file.sls.epilot.io", o: [["uploadFileV2", "post", "/v2/files/upload", [["file_entity_id", "q"]], 1], ["saveFileV2", "post", "/v2/files", [["ActivityIdQueryParam"], ["FillActivityQueryParam"], ["StrictQueryParam"], ["AsyncOperationQueryParam"], ["DeleteTempFileQueryParam"], ["VersionOnlyQueryParam"]], 1], ["uploadFile", "post", "/v1/files/upload", [["file_entity_id", "q"]], 1], ["saveFile", "post", "/v1/files", [["ActivityIdQueryParam"], ["AsyncOperationQueryParam"], ["VersionOnlyQueryParam"]], 1], ["getFile", "get", "/v2/files/{id}", [["id", "p", true], ["source_url", "q"], ["StrictQueryParam"], ["AsyncOperationQueryParam"]]], ["deleteFile", "delete", "/v2/files/{id}", [["id", "p", true], ["purge", "q"], ["ActivityIdQueryParam"], ["StrictQueryParam"]]], ["downloadFile", "get", "/v1/files/{id}/download", [["id", "p", true], ["version", "q"], ["attachment", "q"]]], ["downloadS3File", "post", "/v1/files:downloadS3", [["s3_key", "q", true], ["s3_bucket", "q", true], ["attachment", "q"]]], ["downloadFiles", "post", "/v1/files:downloadFiles", null, 1], ["createZipJob", "post", "/v1/files:zipJob", null, 1], ["getZipJob", "get", "/v1/files:zipJob/{job_id}", [["job_id", "p", true]]], ["generateFileSummary", "post", "/v1/files/{id}/summary:generate", [["id", "p", true]]], ["previewFile", "get", "/v1/files/{id}/preview", [["id", "p", true], ["version", "q"], ["w", "q"], ["h", "q"]]], ["previewS3File", "post", "/v1/files:previewS3", [["w", "q"], ["h", "q"]], 1], ["previewS3FileGet", "get", "/v1/files:previewS3", [["key", "q", true], ["bucket", "q", true], ["w", "q"], ["h", "q"]]], ["previewPublicFile", "get", "/v1/files/public/{id}/preview", [["id", "p", true], ["version", "q"], ["w", "q"], ["h", "q"], ["org_id", "q"]]], ["getSession", "get", "/v1/files/session"], ["deleteSession", "delete", "/v1/files/session"], ["generatePublicLink", "post", "/v1/files/{id}/public/links", [["id", "p", true]]], ["listPublicLinksForFile", "get", "/v1/files/{id}/public/links", [["id", "p", true]]], ["accessPublicLink", "get", "/v1/files/public/links/{id}/{filename}", [["id", "p", true], ["filename", "p", true], ["hash", "q"]]], ["revokePublicLink", "delete", "/v1/files/public/links/{id}", [["id", "p", true]]], ["verifyCustomDownloadUrl", "post", "/v1/files/download:verify", null, 1], ["uploadFilePublic", "post", "/v1/files/public/upload", null, 1], ["getUserSchemaFileCollections", "get", "/v1/{slug}/collections", [["slug", "p", true]]], ["createUserSchemaFileCollection", "post", "/v1/{slug}/collections", [["slug", "p", true]], 1], ["updateUserSchemaFileCollection", "put", "/v1/{slug}/collections/{collectionSlug}", [["slug", "p", true], ["collectionSlug", "p", true]], 1], ["deleteUserSchemaFileCollection", "delete", "/v1/{slug}/collections/{collectionSlug}", [["slug", "p", true], ["collectionSlug", "p", true]]], ["getFilesInCollection", "get", "/v1/entity/{id}/collections/{collectionSlug}/files", [["EntityIdPathParam"], ["collectionSlug", "p", true]]], ["getGlobalFileCollections", "get", "/v1/collections/{schemaSlug}", [["schemaSlug", "p", true]]]], v: "3.0.3", cp: { EntityIdPathParam: ["id", "p", true], StrictQueryParam: ["strict", "q"], ActivityIdQueryParam: ["activity_id", "q"], FillActivityQueryParam: ["fill_activity", "q"], AsyncOperationQueryParam: ["async", "q"], DeleteTempFileQueryParam: ["delete_temp_file", "q"], VersionOnlyQueryParam: ["version_only", "q"] } };
9
- }
10
- });
11
-
12
- export {
13
- require_file_runtime
14
- };