@elqnt/agents 3.0.1 → 3.0.3

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 (53) hide show
  1. package/dist/{agent-models-BdtFKjV3.d.mts → agent-models-C36pvpUb.d.mts} +13 -2
  2. package/dist/{agent-models-BdtFKjV3.d.ts → agent-models-C36pvpUb.d.ts} +13 -2
  3. package/dist/api/index.d.mts +20 -3
  4. package/dist/api/index.d.ts +20 -3
  5. package/dist/api/index.js +4 -2
  6. package/dist/api/index.js.map +1 -1
  7. package/dist/api/index.mjs +3 -1
  8. package/dist/api/server.d.mts +1 -1
  9. package/dist/api/server.d.ts +1 -1
  10. package/dist/api/server.js.map +1 -1
  11. package/dist/{chunk-RTUQ7WKT.mjs → chunk-CYOI5YBB.mjs} +2 -2
  12. package/dist/chunk-HYR7PXFU.mjs +20 -0
  13. package/dist/chunk-HYR7PXFU.mjs.map +1 -0
  14. package/dist/{chunk-EUELXX27.mjs → chunk-JZNPHBJD.mjs} +1 -1
  15. package/dist/chunk-JZNPHBJD.mjs.map +1 -0
  16. package/dist/{chunk-VVYOTEM2.js → chunk-REBFGDVA.js} +40 -40
  17. package/dist/chunk-REBFGDVA.js.map +1 -0
  18. package/dist/{chunk-ADOBVUUS.js → chunk-SKZS3AIT.js} +10 -2
  19. package/dist/chunk-SKZS3AIT.js.map +1 -0
  20. package/dist/{chunk-44A5L2IY.js → chunk-SYCQ7EEL.js} +1 -1
  21. package/dist/chunk-SYCQ7EEL.js.map +1 -0
  22. package/dist/{chunk-O3FM26FT.mjs → chunk-XYJDCUUG.mjs} +10 -2
  23. package/dist/{chunk-O3FM26FT.mjs.map → chunk-XYJDCUUG.mjs.map} +1 -1
  24. package/dist/chunk-ZS7DRNCT.js +20 -0
  25. package/dist/chunk-ZS7DRNCT.js.map +1 -0
  26. package/dist/hooks/index.d.mts +1 -1
  27. package/dist/hooks/index.d.ts +1 -1
  28. package/dist/hooks/index.js +3 -3
  29. package/dist/hooks/index.js.map +1 -1
  30. package/dist/hooks/index.mjs +2 -2
  31. package/dist/index.d.mts +3 -2
  32. package/dist/index.d.ts +3 -2
  33. package/dist/index.js +12 -4
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.mjs +11 -3
  36. package/dist/models/index.d.mts +1 -1
  37. package/dist/models/index.d.ts +1 -1
  38. package/dist/models/index.js +2 -2
  39. package/dist/models/index.js.map +1 -1
  40. package/dist/models/index.mjs +1 -1
  41. package/dist/utils/index.d.mts +31 -0
  42. package/dist/utils/index.d.ts +31 -0
  43. package/dist/utils/index.js +10 -0
  44. package/dist/utils/index.js.map +1 -0
  45. package/dist/utils/index.mjs +10 -0
  46. package/dist/utils/index.mjs.map +1 -0
  47. package/package.json +21 -14
  48. package/README.md +0 -240
  49. package/dist/chunk-44A5L2IY.js.map +0 -1
  50. package/dist/chunk-ADOBVUUS.js.map +0 -1
  51. package/dist/chunk-EUELXX27.mjs.map +0 -1
  52. package/dist/chunk-VVYOTEM2.js.map +0 -1
  53. /package/dist/{chunk-RTUQ7WKT.mjs.map → chunk-CYOI5YBB.mjs.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { JSONSchema, ProductNameTS, ResponseMetadata } from '@elqnt/types';
1
+ import { ProductNameTS, JSONSchema, ResponseMetadata } from '@elqnt/types';
2
2
 
3
3
  /**
4
4
  * AgentContext accumulates meaningful state from agentic tool executions.
@@ -866,6 +866,17 @@ interface DefaultDefinitions {
866
866
  subAgents: SubAgent[];
867
867
  skills?: Skill[];
868
868
  }
869
+ /**
870
+ * AgentProvisionDefinition is a convenience type for provisioning a single agent
871
+ * with its associated tools, sub-agents, and skills. Use ToDefaultDefinitions()
872
+ * to convert to the format expected by the provisioning API.
873
+ */
874
+ interface AgentProvisionDefinition {
875
+ agent: Agent;
876
+ tools?: ToolDefinition[];
877
+ subAgents?: SubAgent[];
878
+ skills?: Skill[];
879
+ }
869
880
  /**
870
881
  * AgentTool represents an agent's configuration for a specific tool
871
882
  * Includes denormalized tool information to avoid joins at runtime
@@ -2395,4 +2406,4 @@ interface PublicWidgetConfig {
2395
2406
  behavior: WidgetBehavior;
2396
2407
  }
2397
2408
 
2398
- export { type ListSkillsRequest as $, type AgentContext as A, type CreateSubAgentRequest as B, type CreateToolDefinitionRequest as C, type DeleteToolDefinitionRequest as D, type ExecutionStatus as E, type UpdateSubAgentRequest as F, type GetToolDefinitionRequest as G, type GetSubAgentRequest as H, type DeleteSubAgentRequest as I, type ListSubAgentsRequest as J, type SubAgentsListResponse as K, type ListToolDefinitionsRequest as L, type MergeConfig as M, type GetToolDefinitionsByIDsRequest as N, type GetToolDefinitionsByIDsResponse as O, type PlanStatus as P, type GetSubAgentsByIDsRequest as Q, type GetSubAgentsByIDsResponse as R, type SubAgentResponse as S, type ToolDefinitionResponse as T, type UpdateToolDefinitionRequest as U, type ExecuteToolRequest as V, type ExecuteToolResponse as W, type CreateSkillRequest as X, type UpdateSkillRequest as Y, type GetSkillRequest as Z, type DeleteSkillRequest as _, type AgentExecution as a, AgentStatusArchived as a$, type SkillResponse as a0, type SkillsListResponse as a1, type GetSkillsByIDsRequest as a2, type GetSkillsByIDsResponse as a3, type UpdateSkillOrgConfigRequest as a4, type UpdateAgentSkillConfigRequest as a5, type GetAgentSkillConfigRequest as a6, type AgentSkillConfigResponse as a7, type GetSkillUserConfigRequest as a8, type UpdateSkillUserConfigRequest as a9, AgentScopeOrg as aA, AgentScopeTeam as aB, AgentScopeUser as aC, type SkillCategoryTS as aD, type SkillCategory as aE, SkillCategoryProductivity as aF, SkillCategoryCreative as aG, SkillCategoryIntegration as aH, SkillCategoryAnalysis as aI, SkillCategoryCommunication as aJ, SkillCategoryCustom as aK, type IntegrationRequirement as aL, type Skill as aM, type AgentSkill as aN, type SkillUserConfig as aO, type AgentType as aP, AgentTypeChat as aQ, AgentTypeReact as aR, type AgentSubType as aS, AgentSubTypeChat as aT, AgentSubTypeReact as aU, AgentSubTypeWorkflow as aV, AgentSubTypeDocument as aW, type AgentStatus as aX, AgentStatusDraft as aY, AgentStatusActive as aZ, AgentStatusInactive as a_, type DeleteSkillUserConfigRequest as aa, type ListSkillUserConfigRequest as ab, type SkillUserConfigResponse as ac, type SkillUserConfigListResponse as ad, type ResolveSkillConfigRequest as ae, type ResolveSkillConfigResponse as af, type CreateAgentJobRequest as ag, type UpdateAgentJobRequest as ah, type AgentJobIDRequest as ai, type ListAgentJobsRequest as aj, type AgentJobResponse as ak, type AgentJobsListResponse as al, type AgentJobTriggerRequest as am, type AgentJobTriggerResponse as an, type ListExecutionsByJobRequest as ao, type ListExecutionsByAgentRequest as ap, type ListExecutionsResponse as aq, type GetExecutionRequest as ar, type ExecutionResponse as as, type TTLCleanupRequest as at, type TTLCleanupResponse as au, type AgentTypeTS as av, type AgentSubTypeTS as aw, type AgentStatusTS as ax, type AgentScopeTS as ay, type AgentScope as az, ExecutionStatusPending as b, type ExecuteJobRequest as b$, type DefaultDefinitions as b0, type AgentTool as b1, type Agent as b2, type HandoffConfig as b3, type WidgetConfig as b4, type WidgetAppearance as b5, type WidgetBehavior as b6, type WidgetSecurity as b7, type AgentFilters as b8, type AgentSummary as b9, type SaveWidgetConfigResponse as bA, type JobScopeTS as bB, type JobStatusTS as bC, type JobFrequencyTS as bD, type JobExecutionStatusTS as bE, type JobScope as bF, JobScopePrivate as bG, JobScopeTeam as bH, JobScopeOrg as bI, type JobStatus as bJ, JobStatusActive as bK, JobStatusExecuting as bL, JobStatusPaused as bM, JobStatusDisabled as bN, type JobFrequency as bO, JobFrequencyOneTime as bP, JobFrequencySchedule as bQ, type AgentJob as bR, type JobExecutionStatus as bS, JobExecutionStatusRunning as bT, JobExecutionStatusSuccess as bU, JobExecutionStatusFailed as bV, JobExecutionStatusTimedOut as bW, type ArtifactRef as bX, type JobExecution as bY, type JobExecutionResult as bZ, type ProcessJobTriggerResult as b_, type ToolDefinition as ba, type ToolExecution as bb, type ToolExecutionProgress as bc, type ToolExecutionStatus as bd, ToolExecutionStatusStarted as be, ToolExecutionStatusExecuting as bf, ToolExecutionStatusCompleted as bg, ToolExecutionStatusFailed as bh, ToolExecutionStatusTimeout as bi, ToolExecutionStatusSkipped as bj, type SubAgent as bk, type AgentToolConfiguration as bl, type ToolExecutionPolicy as bm, type ExecutionMode as bn, ExecutionModeSync as bo, ExecutionModeAsync as bp, ExecutionModeAsyncClient as bq, type CreateExecutionPlanRequest as br, type CreateExecutionPlanResponse as bs, type ExecutePlanRequest as bt, type ExecutePlanResponse as bu, type ToolExecutionStatusTS as bv, type ExecutionModeTS as bw, type GetWidgetConfigRequest as bx, type GetWidgetConfigResponse as by, type SaveWidgetConfigRequest as bz, ExecutionStatusRunning as c, ReactAgentStopSubject as c$, type ExecutionCompletedEvent as c0, type CSATConfig as c1, type CSATQuestion as c2, type CSATSurvey as c3, type CSATAnswer as c4, type CSATResponse as c5, type ReactAgentConfig as c6, type ToolConfig as c7, type RetryPolicy as c8, type MCPServerConfig as c9, AgentReactCreateSubject as cA, AgentReactUpdateSubject as cB, AgentReactGetSubject as cC, AgentReactValidateSubject as cD, AgentExecuteSubject as cE, AgentExecuteStatusSubject as cF, AgentExecuteStopSubject as cG, AgentVersionCreateSubject as cH, AgentVersionCreatedSubject as cI, AgentVersionGetSubject as cJ, AgentVersionListSubject as cK, AgentVersionActivateSubject as cL, AgentVersionActivatedSubject as cM, AgentEnsureDefaultSubject as cN, AgentGetDefaultSubject as cO, AgentGetByOrgSubject as cP, AgentCloneSubject as cQ, AgentExportSubject as cR, AgentImportSubject as cS, AgentUpdateOrgSubject as cT, AgentTemplateListSubject as cU, AgentTemplateGetSubject as cV, AgentFromTemplateSubject as cW, ChatAgentExecuteSubject as cX, ChatAgentStatusSubject as cY, ReactAgentExecuteSubject as cZ, ReactAgentStatusSubject as c_, type CreateAgentRequest as ca, type AgentResponse as cb, type GetAgentRequest as cc, type UpdateAgentRequest as cd, type DeleteAgentRequest as ce, type ListAgentsRequest as cf, type ListAgentsResponse as cg, type ListAgentsSummaryRequest as ch, type ListAgentsSummaryResponse as ci, type GetDefaultAgentRequest as cj, type UpdateOrgAgentsRequest as ck, type UpdateOrgAgentsResponse as cl, AgentCreateSubject as cm, AgentCreatedSubject as cn, AgentGetSubject as co, AgentUpdateSubject as cp, AgentUpdatedSubject as cq, AgentDeleteSubject as cr, AgentDeletedSubject as cs, AgentListSubject as ct, AgentListSummarySubject as cu, AgentSearchSubject as cv, AgentChatCreateSubject as cw, AgentChatUpdateSubject as cx, AgentChatGetSubject as cy, AgentChatValidateSubject as cz, ExecutionStatusCompleted as d, AgentInstanceDeleteSubject as d$, WorkflowAgentGetSubject as d0, WorkflowAgentUpdateSubject as d1, ToolDefinitionsCreateSubject as d2, ToolDefinitionsCreatedSubject as d3, ToolDefinitionsGetSubject as d4, ToolDefinitionsUpdateSubject as d5, ToolDefinitionsUpdatedSubject as d6, ToolDefinitionsDeleteSubject as d7, ToolDefinitionsDeletedSubject as d8, ToolDefinitionsListSubject as d9, AgentSkillGetConfigSubject as dA, SkillUserConfigGetSubject as dB, SkillUserConfigUpdateSubject as dC, SkillUserConfigDeleteSubject as dD, SkillUserConfigListSubject as dE, SkillResolveConfigSubject as dF, WidgetConfigGetByAgentSubject as dG, WidgetConfigSaveSubject as dH, AgentJobCreateSubject as dI, AgentJobGetSubject as dJ, AgentJobUpdateSubject as dK, AgentJobDeleteSubject as dL, AgentJobListSubject as dM, AgentJobPauseSubject as dN, AgentJobResumeSubject as dO, AgentJobTriggerSubject as dP, JobExecutionGetSubject as dQ, JobExecutionListSubject as dR, RuntimeJobExecuteSubject as dS, RuntimeJobCompletedSubject as dT, ExecutionsTTLCleanupSubject as dU, AgentInstanceCreateSubject as dV, AgentInstanceCreatedSubject as dW, AgentInstanceGetSubject as dX, AgentInstanceUpdateSubject as dY, AgentInstanceUpdatedSubject as dZ, AgentInstanceListSubject as d_, ToolDefinitionsGetByIDsSubject as da, ToolDefinitionsExecuteSubject as db, ToolDefinitionsValidateSubject as dc, SubAgentsCreateSubject as dd, SubAgentsCreatedSubject as de, SubAgentsGetSubject as df, SubAgentsUpdateSubject as dg, SubAgentsUpdatedSubject as dh, SubAgentsDeleteSubject as di, SubAgentsDeletedSubject as dj, SubAgentsListSubject as dk, SubAgentsGetByIDsSubject as dl, SubAgentsExecuteSubject as dm, SubAgentsValidateSubject as dn, SkillsCreateSubject as dp, SkillsCreatedSubject as dq, SkillsGetSubject as dr, SkillsUpdateSubject as ds, SkillsUpdatedSubject as dt, SkillsDeleteSubject as du, SkillsDeletedSubject as dv, SkillsListSubject as dw, SkillsGetByIDsSubject as dx, SkillsUpdateOrgConfigSubject as dy, AgentSkillUpdateConfigSubject as dz, ExecutionStatusFailed as e, AgentInstanceDeletedSubject as e0, AgentInstanceCreatePlanSubject as e1, AgentInstanceExecutePlanSubject as e2, AgentInstancePausePlanSubject as e3, AgentInstanceResumePlanSubject as e4, AgentInstanceCancelPlanSubject as e5, AgentInstanceGetHistorySubject as e6, AgentInstanceClearHistorySubject as e7, type AgentCategoryTS as e8, type TemplateStatusTS as e9, type ValidationError as eA, type ValidationErrors as eB, type AgentWidget as eC, AgentWidgetsCreateSubject as eD, AgentWidgetsGetSubject as eE, AgentWidgetsGetByWidgetID as eF, AgentWidgetsUpdateSubject as eG, AgentWidgetsDeleteSubject as eH, AgentWidgetsListSubject as eI, AgentWidgetsSetDefaultSubject as eJ, AgentWidgetsGetDefaultSubject as eK, type CreateAgentWidgetRequest as eL, type AgentWidgetResponse as eM, type GetAgentWidgetRequest as eN, type GetWidgetByWidgetIDRequest as eO, type UpdateAgentWidgetRequest as eP, type DeleteAgentWidgetRequest as eQ, type ListAgentWidgetsRequest as eR, type ListAgentWidgetsResponse as eS, type SetDefaultWidgetRequest as eT, type GetDefaultWidgetRequest as eU, type PublicWidgetConfig as eV, type PublisherTypeTS as ea, type AgentCategory as eb, AgentCategorySupport as ec, AgentCategorySales as ed, AgentCategoryResearch as ee, AgentCategoryWriting as ef, AgentCategoryProductivity as eg, AgentCategoryDevelopment as eh, AgentCategoryMarketing as ei, AgentCategoryHR as ej, AgentCategoryFinance as ek, AgentCategoryGeneral as el, type TemplateStatus as em, TemplateStatusPublished as en, TemplateStatusDraft as eo, type PublisherType as ep, PublisherTypeEloquent as eq, PublisherTypePartner as er, type CustomizableField as es, type AgentTemplate as et, type TemplateCategoryCount as eu, type TemplateFilters as ev, type UserSuggestedActionsConfig as ew, type UserSuggestedAction as ex, type UserSuggestedActionsRequest as ey, type UserSuggestedActionsResponse as ez, ExecutionStatusSkipped as f, type ExecutionStatusTS as g, type MergeStrategy as h, MergeStrategyReplace as i, MergeStrategyMerge as j, MergeStrategyAppend as k, type MergeStrategyTS as l, type AgentContextConfig as m, MaxExecutions as n, ExecutionTTLHours as o, type ExecutionPlan as p, PlanStatusPendingApproval as q, PlanStatusApproved as r, PlanStatusExecuting as s, PlanStatusCompleted as t, PlanStatusRejected as u, PlanStatusCancelled as v, type PlanStatusTS as w, type PlannedStep as x, type PlanApprovalConfig as y, type ToolDefinitionsListResponse as z };
2409
+ export { AgentJobDeleteSubject as $, type Agent as A, AgentExecuteSubject as B, type AgentExecution as C, AgentExportSubject as D, type AgentFilters as E, AgentFromTemplateSubject as F, AgentGetByOrgSubject as G, AgentGetDefaultSubject as H, AgentGetSubject as I, AgentImportSubject as J, AgentInstanceCancelPlanSubject as K, AgentInstanceClearHistorySubject as L, AgentInstanceCreatePlanSubject as M, AgentInstanceCreateSubject as N, AgentInstanceCreatedSubject as O, AgentInstanceDeleteSubject as P, AgentInstanceDeletedSubject as Q, AgentInstanceExecutePlanSubject as R, AgentInstanceGetHistorySubject as S, AgentInstanceGetSubject as T, AgentInstanceListSubject as U, AgentInstancePausePlanSubject as V, AgentInstanceResumePlanSubject as W, AgentInstanceUpdateSubject as X, AgentInstanceUpdatedSubject as Y, type AgentJob as Z, AgentJobCreateSubject as _, type AgentCategory as a, AgentWidgetsDeleteSubject as a$, AgentJobGetSubject as a0, type AgentJobIDRequest as a1, AgentJobListSubject as a2, AgentJobPauseSubject as a3, type AgentJobResponse as a4, AgentJobResumeSubject as a5, type AgentJobTriggerRequest as a6, type AgentJobTriggerResponse as a7, AgentJobTriggerSubject as a8, AgentJobUpdateSubject as a9, AgentSubTypeChat as aA, AgentSubTypeDocument as aB, AgentSubTypeReact as aC, type AgentSubTypeTS as aD, AgentSubTypeWorkflow as aE, type AgentSummary as aF, type AgentTemplate as aG, AgentTemplateGetSubject as aH, AgentTemplateListSubject as aI, type AgentTool as aJ, type AgentToolConfiguration as aK, type AgentType as aL, AgentTypeChat as aM, AgentTypeReact as aN, type AgentTypeTS as aO, AgentUpdateOrgSubject as aP, AgentUpdateSubject as aQ, AgentUpdatedSubject as aR, AgentVersionActivateSubject as aS, AgentVersionActivatedSubject as aT, AgentVersionCreateSubject as aU, AgentVersionCreatedSubject as aV, AgentVersionGetSubject as aW, AgentVersionListSubject as aX, type AgentWidget as aY, type AgentWidgetResponse as aZ, AgentWidgetsCreateSubject as a_, type AgentJobsListResponse as aa, AgentListSubject as ab, AgentListSummarySubject as ac, type AgentProvisionDefinition as ad, AgentReactCreateSubject as ae, AgentReactGetSubject as af, AgentReactUpdateSubject as ag, AgentReactValidateSubject as ah, type AgentResponse as ai, type AgentScope as aj, AgentScopeOrg as ak, type AgentScopeTS as al, AgentScopeTeam as am, AgentScopeUser as an, AgentSearchSubject as ao, type AgentSkill as ap, type AgentSkillConfigResponse as aq, AgentSkillGetConfigSubject as ar, AgentSkillUpdateConfigSubject as as, type AgentStatus as at, AgentStatusActive as au, AgentStatusArchived as av, AgentStatusDraft as aw, AgentStatusInactive as ax, type AgentStatusTS as ay, type AgentSubType as az, AgentCategoryDevelopment as b, type GetSubAgentsByIDsRequest as b$, AgentWidgetsGetByWidgetID as b0, AgentWidgetsGetDefaultSubject as b1, AgentWidgetsGetSubject as b2, AgentWidgetsListSubject as b3, AgentWidgetsSetDefaultSubject as b4, AgentWidgetsUpdateSubject as b5, type ArtifactRef as b6, type CSATAnswer as b7, type CSATConfig as b8, type CSATQuestion as b9, type ExecutionMode as bA, ExecutionModeAsync as bB, ExecutionModeAsyncClient as bC, ExecutionModeSync as bD, type ExecutionModeTS as bE, type ExecutionPlan as bF, type ExecutionResponse as bG, type ExecutionStatus as bH, ExecutionStatusCompleted as bI, ExecutionStatusFailed as bJ, ExecutionStatusPending as bK, ExecutionStatusRunning as bL, ExecutionStatusSkipped as bM, type ExecutionStatusTS as bN, ExecutionTTLHours as bO, ExecutionsTTLCleanupSubject as bP, type GetAgentRequest as bQ, type GetAgentSkillConfigRequest as bR, type GetAgentWidgetRequest as bS, type GetDefaultAgentRequest as bT, type GetDefaultWidgetRequest as bU, type GetExecutionRequest as bV, type GetSkillRequest as bW, type GetSkillUserConfigRequest as bX, type GetSkillsByIDsRequest as bY, type GetSkillsByIDsResponse as bZ, type GetSubAgentRequest as b_, type CSATResponse as ba, type CSATSurvey as bb, ChatAgentExecuteSubject as bc, ChatAgentStatusSubject as bd, type CreateAgentJobRequest as be, type CreateAgentRequest as bf, type CreateAgentWidgetRequest as bg, type CreateExecutionPlanRequest as bh, type CreateExecutionPlanResponse as bi, type CreateSkillRequest as bj, type CreateSubAgentRequest as bk, type CreateToolDefinitionRequest as bl, type CustomizableField as bm, type DefaultDefinitions as bn, type DeleteAgentRequest as bo, type DeleteAgentWidgetRequest as bp, type DeleteSkillRequest as bq, type DeleteSkillUserConfigRequest as br, type DeleteSubAgentRequest as bs, type DeleteToolDefinitionRequest as bt, type ExecuteJobRequest as bu, type ExecutePlanRequest as bv, type ExecutePlanResponse as bw, type ExecuteToolRequest as bx, type ExecuteToolResponse as by, type ExecutionCompletedEvent as bz, AgentCategoryFinance as c, PlanStatusRejected as c$, type GetSubAgentsByIDsResponse as c0, type GetToolDefinitionRequest as c1, type GetToolDefinitionsByIDsRequest as c2, type GetToolDefinitionsByIDsResponse as c3, type GetWidgetByWidgetIDRequest as c4, type GetWidgetConfigRequest as c5, type GetWidgetConfigResponse as c6, type HandoffConfig as c7, type IntegrationRequirement as c8, type JobExecution as c9, type ListAgentWidgetsResponse as cA, type ListAgentsRequest as cB, type ListAgentsResponse as cC, type ListAgentsSummaryRequest as cD, type ListAgentsSummaryResponse as cE, type ListExecutionsByAgentRequest as cF, type ListExecutionsByJobRequest as cG, type ListExecutionsResponse as cH, type ListSkillUserConfigRequest as cI, type ListSkillsRequest as cJ, type ListSubAgentsRequest as cK, type ListToolDefinitionsRequest as cL, type MCPServerConfig as cM, MaxExecutions as cN, type MergeConfig as cO, type MergeStrategy as cP, MergeStrategyAppend as cQ, MergeStrategyMerge as cR, MergeStrategyReplace as cS, type MergeStrategyTS as cT, type PlanApprovalConfig as cU, type PlanStatus as cV, PlanStatusApproved as cW, PlanStatusCancelled as cX, PlanStatusCompleted as cY, PlanStatusExecuting as cZ, PlanStatusPendingApproval as c_, JobExecutionGetSubject as ca, JobExecutionListSubject as cb, type JobExecutionResult as cc, type JobExecutionStatus as cd, JobExecutionStatusFailed as ce, JobExecutionStatusRunning as cf, JobExecutionStatusSuccess as cg, type JobExecutionStatusTS as ch, JobExecutionStatusTimedOut as ci, type JobFrequency as cj, JobFrequencyOneTime as ck, JobFrequencySchedule as cl, type JobFrequencyTS as cm, type JobScope as cn, JobScopeOrg as co, JobScopePrivate as cp, type JobScopeTS as cq, JobScopeTeam as cr, type JobStatus as cs, JobStatusActive as ct, JobStatusDisabled as cu, JobStatusExecuting as cv, JobStatusPaused as cw, type JobStatusTS as cx, type ListAgentJobsRequest as cy, type ListAgentWidgetsRequest as cz, AgentCategoryGeneral as d, SubAgentsValidateSubject as d$, type PlanStatusTS as d0, type PlannedStep as d1, type ProcessJobTriggerResult as d2, type PublicWidgetConfig as d3, type PublisherType as d4, PublisherTypeEloquent as d5, PublisherTypePartner as d6, type PublisherTypeTS as d7, type ReactAgentConfig as d8, ReactAgentExecuteSubject as d9, SkillUserConfigListSubject as dA, type SkillUserConfigResponse as dB, SkillUserConfigUpdateSubject as dC, SkillsCreateSubject as dD, SkillsCreatedSubject as dE, SkillsDeleteSubject as dF, SkillsDeletedSubject as dG, SkillsGetByIDsSubject as dH, SkillsGetSubject as dI, type SkillsListResponse as dJ, SkillsListSubject as dK, SkillsUpdateOrgConfigSubject as dL, SkillsUpdateSubject as dM, SkillsUpdatedSubject as dN, type SubAgent as dO, type SubAgentResponse as dP, SubAgentsCreateSubject as dQ, SubAgentsCreatedSubject as dR, SubAgentsDeleteSubject as dS, SubAgentsDeletedSubject as dT, SubAgentsExecuteSubject as dU, SubAgentsGetByIDsSubject as dV, SubAgentsGetSubject as dW, type SubAgentsListResponse as dX, SubAgentsListSubject as dY, SubAgentsUpdateSubject as dZ, SubAgentsUpdatedSubject as d_, ReactAgentStatusSubject as da, ReactAgentStopSubject as db, type ResolveSkillConfigRequest as dc, type ResolveSkillConfigResponse as dd, type RetryPolicy as de, RuntimeJobCompletedSubject as df, RuntimeJobExecuteSubject as dg, type SaveWidgetConfigRequest as dh, type SaveWidgetConfigResponse as di, type SetDefaultWidgetRequest as dj, type Skill as dk, type SkillCategory as dl, SkillCategoryAnalysis as dm, SkillCategoryCommunication as dn, SkillCategoryCreative as dp, SkillCategoryCustom as dq, SkillCategoryIntegration as dr, SkillCategoryProductivity as ds, type SkillCategoryTS as dt, SkillResolveConfigSubject as du, type SkillResponse as dv, type SkillUserConfig as dw, SkillUserConfigDeleteSubject as dx, SkillUserConfigGetSubject as dy, type SkillUserConfigListResponse as dz, AgentCategoryHR as e, type TTLCleanupRequest as e0, type TTLCleanupResponse as e1, type TemplateCategoryCount as e2, type TemplateFilters as e3, type TemplateStatus as e4, TemplateStatusDraft as e5, TemplateStatusPublished as e6, type TemplateStatusTS as e7, type ToolConfig as e8, type ToolDefinition as e9, type UpdateAgentSkillConfigRequest as eA, type UpdateAgentWidgetRequest as eB, type UpdateOrgAgentsRequest as eC, type UpdateOrgAgentsResponse as eD, type UpdateSkillOrgConfigRequest as eE, type UpdateSkillRequest as eF, type UpdateSkillUserConfigRequest as eG, type UpdateSubAgentRequest as eH, type UpdateToolDefinitionRequest as eI, type UserSuggestedAction as eJ, type UserSuggestedActionsConfig as eK, type UserSuggestedActionsRequest as eL, type UserSuggestedActionsResponse as eM, type ValidationError as eN, type ValidationErrors as eO, type WidgetAppearance as eP, type WidgetBehavior as eQ, type WidgetConfig as eR, WidgetConfigGetByAgentSubject as eS, WidgetConfigSaveSubject as eT, type WidgetSecurity as eU, WorkflowAgentGetSubject as eV, WorkflowAgentUpdateSubject as eW, type ToolDefinitionResponse as ea, ToolDefinitionsCreateSubject as eb, ToolDefinitionsCreatedSubject as ec, ToolDefinitionsDeleteSubject as ed, ToolDefinitionsDeletedSubject as ee, ToolDefinitionsExecuteSubject as ef, ToolDefinitionsGetByIDsSubject as eg, ToolDefinitionsGetSubject as eh, type ToolDefinitionsListResponse as ei, ToolDefinitionsListSubject as ej, ToolDefinitionsUpdateSubject as ek, ToolDefinitionsUpdatedSubject as el, ToolDefinitionsValidateSubject as em, type ToolExecution as en, type ToolExecutionPolicy as eo, type ToolExecutionProgress as ep, type ToolExecutionStatus as eq, ToolExecutionStatusCompleted as er, ToolExecutionStatusExecuting as es, ToolExecutionStatusFailed as et, ToolExecutionStatusSkipped as eu, ToolExecutionStatusStarted as ev, type ToolExecutionStatusTS as ew, ToolExecutionStatusTimeout as ex, type UpdateAgentJobRequest as ey, type UpdateAgentRequest as ez, AgentCategoryMarketing as f, AgentCategoryProductivity as g, AgentCategoryResearch as h, AgentCategorySales as i, AgentCategorySupport as j, type AgentCategoryTS as k, AgentCategoryWriting as l, AgentChatCreateSubject as m, AgentChatGetSubject as n, AgentChatUpdateSubject as o, AgentChatValidateSubject as p, AgentCloneSubject as q, type AgentContext as r, type AgentContextConfig as s, AgentCreateSubject as t, AgentCreatedSubject as u, AgentDeleteSubject as v, AgentDeletedSubject as w, AgentEnsureDefaultSubject as x, AgentExecuteStatusSubject as y, AgentExecuteStopSubject as z };
@@ -1,4 +1,4 @@
1
- import { JSONSchema, ProductNameTS, ResponseMetadata } from '@elqnt/types';
1
+ import { ProductNameTS, JSONSchema, ResponseMetadata } from '@elqnt/types';
2
2
 
3
3
  /**
4
4
  * AgentContext accumulates meaningful state from agentic tool executions.
@@ -866,6 +866,17 @@ interface DefaultDefinitions {
866
866
  subAgents: SubAgent[];
867
867
  skills?: Skill[];
868
868
  }
869
+ /**
870
+ * AgentProvisionDefinition is a convenience type for provisioning a single agent
871
+ * with its associated tools, sub-agents, and skills. Use ToDefaultDefinitions()
872
+ * to convert to the format expected by the provisioning API.
873
+ */
874
+ interface AgentProvisionDefinition {
875
+ agent: Agent;
876
+ tools?: ToolDefinition[];
877
+ subAgents?: SubAgent[];
878
+ skills?: Skill[];
879
+ }
869
880
  /**
870
881
  * AgentTool represents an agent's configuration for a specific tool
871
882
  * Includes denormalized tool information to avoid joins at runtime
@@ -2395,4 +2406,4 @@ interface PublicWidgetConfig {
2395
2406
  behavior: WidgetBehavior;
2396
2407
  }
2397
2408
 
2398
- export { type ListSkillsRequest as $, type AgentContext as A, type CreateSubAgentRequest as B, type CreateToolDefinitionRequest as C, type DeleteToolDefinitionRequest as D, type ExecutionStatus as E, type UpdateSubAgentRequest as F, type GetToolDefinitionRequest as G, type GetSubAgentRequest as H, type DeleteSubAgentRequest as I, type ListSubAgentsRequest as J, type SubAgentsListResponse as K, type ListToolDefinitionsRequest as L, type MergeConfig as M, type GetToolDefinitionsByIDsRequest as N, type GetToolDefinitionsByIDsResponse as O, type PlanStatus as P, type GetSubAgentsByIDsRequest as Q, type GetSubAgentsByIDsResponse as R, type SubAgentResponse as S, type ToolDefinitionResponse as T, type UpdateToolDefinitionRequest as U, type ExecuteToolRequest as V, type ExecuteToolResponse as W, type CreateSkillRequest as X, type UpdateSkillRequest as Y, type GetSkillRequest as Z, type DeleteSkillRequest as _, type AgentExecution as a, AgentStatusArchived as a$, type SkillResponse as a0, type SkillsListResponse as a1, type GetSkillsByIDsRequest as a2, type GetSkillsByIDsResponse as a3, type UpdateSkillOrgConfigRequest as a4, type UpdateAgentSkillConfigRequest as a5, type GetAgentSkillConfigRequest as a6, type AgentSkillConfigResponse as a7, type GetSkillUserConfigRequest as a8, type UpdateSkillUserConfigRequest as a9, AgentScopeOrg as aA, AgentScopeTeam as aB, AgentScopeUser as aC, type SkillCategoryTS as aD, type SkillCategory as aE, SkillCategoryProductivity as aF, SkillCategoryCreative as aG, SkillCategoryIntegration as aH, SkillCategoryAnalysis as aI, SkillCategoryCommunication as aJ, SkillCategoryCustom as aK, type IntegrationRequirement as aL, type Skill as aM, type AgentSkill as aN, type SkillUserConfig as aO, type AgentType as aP, AgentTypeChat as aQ, AgentTypeReact as aR, type AgentSubType as aS, AgentSubTypeChat as aT, AgentSubTypeReact as aU, AgentSubTypeWorkflow as aV, AgentSubTypeDocument as aW, type AgentStatus as aX, AgentStatusDraft as aY, AgentStatusActive as aZ, AgentStatusInactive as a_, type DeleteSkillUserConfigRequest as aa, type ListSkillUserConfigRequest as ab, type SkillUserConfigResponse as ac, type SkillUserConfigListResponse as ad, type ResolveSkillConfigRequest as ae, type ResolveSkillConfigResponse as af, type CreateAgentJobRequest as ag, type UpdateAgentJobRequest as ah, type AgentJobIDRequest as ai, type ListAgentJobsRequest as aj, type AgentJobResponse as ak, type AgentJobsListResponse as al, type AgentJobTriggerRequest as am, type AgentJobTriggerResponse as an, type ListExecutionsByJobRequest as ao, type ListExecutionsByAgentRequest as ap, type ListExecutionsResponse as aq, type GetExecutionRequest as ar, type ExecutionResponse as as, type TTLCleanupRequest as at, type TTLCleanupResponse as au, type AgentTypeTS as av, type AgentSubTypeTS as aw, type AgentStatusTS as ax, type AgentScopeTS as ay, type AgentScope as az, ExecutionStatusPending as b, type ExecuteJobRequest as b$, type DefaultDefinitions as b0, type AgentTool as b1, type Agent as b2, type HandoffConfig as b3, type WidgetConfig as b4, type WidgetAppearance as b5, type WidgetBehavior as b6, type WidgetSecurity as b7, type AgentFilters as b8, type AgentSummary as b9, type SaveWidgetConfigResponse as bA, type JobScopeTS as bB, type JobStatusTS as bC, type JobFrequencyTS as bD, type JobExecutionStatusTS as bE, type JobScope as bF, JobScopePrivate as bG, JobScopeTeam as bH, JobScopeOrg as bI, type JobStatus as bJ, JobStatusActive as bK, JobStatusExecuting as bL, JobStatusPaused as bM, JobStatusDisabled as bN, type JobFrequency as bO, JobFrequencyOneTime as bP, JobFrequencySchedule as bQ, type AgentJob as bR, type JobExecutionStatus as bS, JobExecutionStatusRunning as bT, JobExecutionStatusSuccess as bU, JobExecutionStatusFailed as bV, JobExecutionStatusTimedOut as bW, type ArtifactRef as bX, type JobExecution as bY, type JobExecutionResult as bZ, type ProcessJobTriggerResult as b_, type ToolDefinition as ba, type ToolExecution as bb, type ToolExecutionProgress as bc, type ToolExecutionStatus as bd, ToolExecutionStatusStarted as be, ToolExecutionStatusExecuting as bf, ToolExecutionStatusCompleted as bg, ToolExecutionStatusFailed as bh, ToolExecutionStatusTimeout as bi, ToolExecutionStatusSkipped as bj, type SubAgent as bk, type AgentToolConfiguration as bl, type ToolExecutionPolicy as bm, type ExecutionMode as bn, ExecutionModeSync as bo, ExecutionModeAsync as bp, ExecutionModeAsyncClient as bq, type CreateExecutionPlanRequest as br, type CreateExecutionPlanResponse as bs, type ExecutePlanRequest as bt, type ExecutePlanResponse as bu, type ToolExecutionStatusTS as bv, type ExecutionModeTS as bw, type GetWidgetConfigRequest as bx, type GetWidgetConfigResponse as by, type SaveWidgetConfigRequest as bz, ExecutionStatusRunning as c, ReactAgentStopSubject as c$, type ExecutionCompletedEvent as c0, type CSATConfig as c1, type CSATQuestion as c2, type CSATSurvey as c3, type CSATAnswer as c4, type CSATResponse as c5, type ReactAgentConfig as c6, type ToolConfig as c7, type RetryPolicy as c8, type MCPServerConfig as c9, AgentReactCreateSubject as cA, AgentReactUpdateSubject as cB, AgentReactGetSubject as cC, AgentReactValidateSubject as cD, AgentExecuteSubject as cE, AgentExecuteStatusSubject as cF, AgentExecuteStopSubject as cG, AgentVersionCreateSubject as cH, AgentVersionCreatedSubject as cI, AgentVersionGetSubject as cJ, AgentVersionListSubject as cK, AgentVersionActivateSubject as cL, AgentVersionActivatedSubject as cM, AgentEnsureDefaultSubject as cN, AgentGetDefaultSubject as cO, AgentGetByOrgSubject as cP, AgentCloneSubject as cQ, AgentExportSubject as cR, AgentImportSubject as cS, AgentUpdateOrgSubject as cT, AgentTemplateListSubject as cU, AgentTemplateGetSubject as cV, AgentFromTemplateSubject as cW, ChatAgentExecuteSubject as cX, ChatAgentStatusSubject as cY, ReactAgentExecuteSubject as cZ, ReactAgentStatusSubject as c_, type CreateAgentRequest as ca, type AgentResponse as cb, type GetAgentRequest as cc, type UpdateAgentRequest as cd, type DeleteAgentRequest as ce, type ListAgentsRequest as cf, type ListAgentsResponse as cg, type ListAgentsSummaryRequest as ch, type ListAgentsSummaryResponse as ci, type GetDefaultAgentRequest as cj, type UpdateOrgAgentsRequest as ck, type UpdateOrgAgentsResponse as cl, AgentCreateSubject as cm, AgentCreatedSubject as cn, AgentGetSubject as co, AgentUpdateSubject as cp, AgentUpdatedSubject as cq, AgentDeleteSubject as cr, AgentDeletedSubject as cs, AgentListSubject as ct, AgentListSummarySubject as cu, AgentSearchSubject as cv, AgentChatCreateSubject as cw, AgentChatUpdateSubject as cx, AgentChatGetSubject as cy, AgentChatValidateSubject as cz, ExecutionStatusCompleted as d, AgentInstanceDeleteSubject as d$, WorkflowAgentGetSubject as d0, WorkflowAgentUpdateSubject as d1, ToolDefinitionsCreateSubject as d2, ToolDefinitionsCreatedSubject as d3, ToolDefinitionsGetSubject as d4, ToolDefinitionsUpdateSubject as d5, ToolDefinitionsUpdatedSubject as d6, ToolDefinitionsDeleteSubject as d7, ToolDefinitionsDeletedSubject as d8, ToolDefinitionsListSubject as d9, AgentSkillGetConfigSubject as dA, SkillUserConfigGetSubject as dB, SkillUserConfigUpdateSubject as dC, SkillUserConfigDeleteSubject as dD, SkillUserConfigListSubject as dE, SkillResolveConfigSubject as dF, WidgetConfigGetByAgentSubject as dG, WidgetConfigSaveSubject as dH, AgentJobCreateSubject as dI, AgentJobGetSubject as dJ, AgentJobUpdateSubject as dK, AgentJobDeleteSubject as dL, AgentJobListSubject as dM, AgentJobPauseSubject as dN, AgentJobResumeSubject as dO, AgentJobTriggerSubject as dP, JobExecutionGetSubject as dQ, JobExecutionListSubject as dR, RuntimeJobExecuteSubject as dS, RuntimeJobCompletedSubject as dT, ExecutionsTTLCleanupSubject as dU, AgentInstanceCreateSubject as dV, AgentInstanceCreatedSubject as dW, AgentInstanceGetSubject as dX, AgentInstanceUpdateSubject as dY, AgentInstanceUpdatedSubject as dZ, AgentInstanceListSubject as d_, ToolDefinitionsGetByIDsSubject as da, ToolDefinitionsExecuteSubject as db, ToolDefinitionsValidateSubject as dc, SubAgentsCreateSubject as dd, SubAgentsCreatedSubject as de, SubAgentsGetSubject as df, SubAgentsUpdateSubject as dg, SubAgentsUpdatedSubject as dh, SubAgentsDeleteSubject as di, SubAgentsDeletedSubject as dj, SubAgentsListSubject as dk, SubAgentsGetByIDsSubject as dl, SubAgentsExecuteSubject as dm, SubAgentsValidateSubject as dn, SkillsCreateSubject as dp, SkillsCreatedSubject as dq, SkillsGetSubject as dr, SkillsUpdateSubject as ds, SkillsUpdatedSubject as dt, SkillsDeleteSubject as du, SkillsDeletedSubject as dv, SkillsListSubject as dw, SkillsGetByIDsSubject as dx, SkillsUpdateOrgConfigSubject as dy, AgentSkillUpdateConfigSubject as dz, ExecutionStatusFailed as e, AgentInstanceDeletedSubject as e0, AgentInstanceCreatePlanSubject as e1, AgentInstanceExecutePlanSubject as e2, AgentInstancePausePlanSubject as e3, AgentInstanceResumePlanSubject as e4, AgentInstanceCancelPlanSubject as e5, AgentInstanceGetHistorySubject as e6, AgentInstanceClearHistorySubject as e7, type AgentCategoryTS as e8, type TemplateStatusTS as e9, type ValidationError as eA, type ValidationErrors as eB, type AgentWidget as eC, AgentWidgetsCreateSubject as eD, AgentWidgetsGetSubject as eE, AgentWidgetsGetByWidgetID as eF, AgentWidgetsUpdateSubject as eG, AgentWidgetsDeleteSubject as eH, AgentWidgetsListSubject as eI, AgentWidgetsSetDefaultSubject as eJ, AgentWidgetsGetDefaultSubject as eK, type CreateAgentWidgetRequest as eL, type AgentWidgetResponse as eM, type GetAgentWidgetRequest as eN, type GetWidgetByWidgetIDRequest as eO, type UpdateAgentWidgetRequest as eP, type DeleteAgentWidgetRequest as eQ, type ListAgentWidgetsRequest as eR, type ListAgentWidgetsResponse as eS, type SetDefaultWidgetRequest as eT, type GetDefaultWidgetRequest as eU, type PublicWidgetConfig as eV, type PublisherTypeTS as ea, type AgentCategory as eb, AgentCategorySupport as ec, AgentCategorySales as ed, AgentCategoryResearch as ee, AgentCategoryWriting as ef, AgentCategoryProductivity as eg, AgentCategoryDevelopment as eh, AgentCategoryMarketing as ei, AgentCategoryHR as ej, AgentCategoryFinance as ek, AgentCategoryGeneral as el, type TemplateStatus as em, TemplateStatusPublished as en, TemplateStatusDraft as eo, type PublisherType as ep, PublisherTypeEloquent as eq, PublisherTypePartner as er, type CustomizableField as es, type AgentTemplate as et, type TemplateCategoryCount as eu, type TemplateFilters as ev, type UserSuggestedActionsConfig as ew, type UserSuggestedAction as ex, type UserSuggestedActionsRequest as ey, type UserSuggestedActionsResponse as ez, ExecutionStatusSkipped as f, type ExecutionStatusTS as g, type MergeStrategy as h, MergeStrategyReplace as i, MergeStrategyMerge as j, MergeStrategyAppend as k, type MergeStrategyTS as l, type AgentContextConfig as m, MaxExecutions as n, ExecutionTTLHours as o, type ExecutionPlan as p, PlanStatusPendingApproval as q, PlanStatusApproved as r, PlanStatusExecuting as s, PlanStatusCompleted as t, PlanStatusRejected as u, PlanStatusCancelled as v, type PlanStatusTS as w, type PlannedStep as x, type PlanApprovalConfig as y, type ToolDefinitionsListResponse as z };
2409
+ export { AgentJobDeleteSubject as $, type Agent as A, AgentExecuteSubject as B, type AgentExecution as C, AgentExportSubject as D, type AgentFilters as E, AgentFromTemplateSubject as F, AgentGetByOrgSubject as G, AgentGetDefaultSubject as H, AgentGetSubject as I, AgentImportSubject as J, AgentInstanceCancelPlanSubject as K, AgentInstanceClearHistorySubject as L, AgentInstanceCreatePlanSubject as M, AgentInstanceCreateSubject as N, AgentInstanceCreatedSubject as O, AgentInstanceDeleteSubject as P, AgentInstanceDeletedSubject as Q, AgentInstanceExecutePlanSubject as R, AgentInstanceGetHistorySubject as S, AgentInstanceGetSubject as T, AgentInstanceListSubject as U, AgentInstancePausePlanSubject as V, AgentInstanceResumePlanSubject as W, AgentInstanceUpdateSubject as X, AgentInstanceUpdatedSubject as Y, type AgentJob as Z, AgentJobCreateSubject as _, type AgentCategory as a, AgentWidgetsDeleteSubject as a$, AgentJobGetSubject as a0, type AgentJobIDRequest as a1, AgentJobListSubject as a2, AgentJobPauseSubject as a3, type AgentJobResponse as a4, AgentJobResumeSubject as a5, type AgentJobTriggerRequest as a6, type AgentJobTriggerResponse as a7, AgentJobTriggerSubject as a8, AgentJobUpdateSubject as a9, AgentSubTypeChat as aA, AgentSubTypeDocument as aB, AgentSubTypeReact as aC, type AgentSubTypeTS as aD, AgentSubTypeWorkflow as aE, type AgentSummary as aF, type AgentTemplate as aG, AgentTemplateGetSubject as aH, AgentTemplateListSubject as aI, type AgentTool as aJ, type AgentToolConfiguration as aK, type AgentType as aL, AgentTypeChat as aM, AgentTypeReact as aN, type AgentTypeTS as aO, AgentUpdateOrgSubject as aP, AgentUpdateSubject as aQ, AgentUpdatedSubject as aR, AgentVersionActivateSubject as aS, AgentVersionActivatedSubject as aT, AgentVersionCreateSubject as aU, AgentVersionCreatedSubject as aV, AgentVersionGetSubject as aW, AgentVersionListSubject as aX, type AgentWidget as aY, type AgentWidgetResponse as aZ, AgentWidgetsCreateSubject as a_, type AgentJobsListResponse as aa, AgentListSubject as ab, AgentListSummarySubject as ac, type AgentProvisionDefinition as ad, AgentReactCreateSubject as ae, AgentReactGetSubject as af, AgentReactUpdateSubject as ag, AgentReactValidateSubject as ah, type AgentResponse as ai, type AgentScope as aj, AgentScopeOrg as ak, type AgentScopeTS as al, AgentScopeTeam as am, AgentScopeUser as an, AgentSearchSubject as ao, type AgentSkill as ap, type AgentSkillConfigResponse as aq, AgentSkillGetConfigSubject as ar, AgentSkillUpdateConfigSubject as as, type AgentStatus as at, AgentStatusActive as au, AgentStatusArchived as av, AgentStatusDraft as aw, AgentStatusInactive as ax, type AgentStatusTS as ay, type AgentSubType as az, AgentCategoryDevelopment as b, type GetSubAgentsByIDsRequest as b$, AgentWidgetsGetByWidgetID as b0, AgentWidgetsGetDefaultSubject as b1, AgentWidgetsGetSubject as b2, AgentWidgetsListSubject as b3, AgentWidgetsSetDefaultSubject as b4, AgentWidgetsUpdateSubject as b5, type ArtifactRef as b6, type CSATAnswer as b7, type CSATConfig as b8, type CSATQuestion as b9, type ExecutionMode as bA, ExecutionModeAsync as bB, ExecutionModeAsyncClient as bC, ExecutionModeSync as bD, type ExecutionModeTS as bE, type ExecutionPlan as bF, type ExecutionResponse as bG, type ExecutionStatus as bH, ExecutionStatusCompleted as bI, ExecutionStatusFailed as bJ, ExecutionStatusPending as bK, ExecutionStatusRunning as bL, ExecutionStatusSkipped as bM, type ExecutionStatusTS as bN, ExecutionTTLHours as bO, ExecutionsTTLCleanupSubject as bP, type GetAgentRequest as bQ, type GetAgentSkillConfigRequest as bR, type GetAgentWidgetRequest as bS, type GetDefaultAgentRequest as bT, type GetDefaultWidgetRequest as bU, type GetExecutionRequest as bV, type GetSkillRequest as bW, type GetSkillUserConfigRequest as bX, type GetSkillsByIDsRequest as bY, type GetSkillsByIDsResponse as bZ, type GetSubAgentRequest as b_, type CSATResponse as ba, type CSATSurvey as bb, ChatAgentExecuteSubject as bc, ChatAgentStatusSubject as bd, type CreateAgentJobRequest as be, type CreateAgentRequest as bf, type CreateAgentWidgetRequest as bg, type CreateExecutionPlanRequest as bh, type CreateExecutionPlanResponse as bi, type CreateSkillRequest as bj, type CreateSubAgentRequest as bk, type CreateToolDefinitionRequest as bl, type CustomizableField as bm, type DefaultDefinitions as bn, type DeleteAgentRequest as bo, type DeleteAgentWidgetRequest as bp, type DeleteSkillRequest as bq, type DeleteSkillUserConfigRequest as br, type DeleteSubAgentRequest as bs, type DeleteToolDefinitionRequest as bt, type ExecuteJobRequest as bu, type ExecutePlanRequest as bv, type ExecutePlanResponse as bw, type ExecuteToolRequest as bx, type ExecuteToolResponse as by, type ExecutionCompletedEvent as bz, AgentCategoryFinance as c, PlanStatusRejected as c$, type GetSubAgentsByIDsResponse as c0, type GetToolDefinitionRequest as c1, type GetToolDefinitionsByIDsRequest as c2, type GetToolDefinitionsByIDsResponse as c3, type GetWidgetByWidgetIDRequest as c4, type GetWidgetConfigRequest as c5, type GetWidgetConfigResponse as c6, type HandoffConfig as c7, type IntegrationRequirement as c8, type JobExecution as c9, type ListAgentWidgetsResponse as cA, type ListAgentsRequest as cB, type ListAgentsResponse as cC, type ListAgentsSummaryRequest as cD, type ListAgentsSummaryResponse as cE, type ListExecutionsByAgentRequest as cF, type ListExecutionsByJobRequest as cG, type ListExecutionsResponse as cH, type ListSkillUserConfigRequest as cI, type ListSkillsRequest as cJ, type ListSubAgentsRequest as cK, type ListToolDefinitionsRequest as cL, type MCPServerConfig as cM, MaxExecutions as cN, type MergeConfig as cO, type MergeStrategy as cP, MergeStrategyAppend as cQ, MergeStrategyMerge as cR, MergeStrategyReplace as cS, type MergeStrategyTS as cT, type PlanApprovalConfig as cU, type PlanStatus as cV, PlanStatusApproved as cW, PlanStatusCancelled as cX, PlanStatusCompleted as cY, PlanStatusExecuting as cZ, PlanStatusPendingApproval as c_, JobExecutionGetSubject as ca, JobExecutionListSubject as cb, type JobExecutionResult as cc, type JobExecutionStatus as cd, JobExecutionStatusFailed as ce, JobExecutionStatusRunning as cf, JobExecutionStatusSuccess as cg, type JobExecutionStatusTS as ch, JobExecutionStatusTimedOut as ci, type JobFrequency as cj, JobFrequencyOneTime as ck, JobFrequencySchedule as cl, type JobFrequencyTS as cm, type JobScope as cn, JobScopeOrg as co, JobScopePrivate as cp, type JobScopeTS as cq, JobScopeTeam as cr, type JobStatus as cs, JobStatusActive as ct, JobStatusDisabled as cu, JobStatusExecuting as cv, JobStatusPaused as cw, type JobStatusTS as cx, type ListAgentJobsRequest as cy, type ListAgentWidgetsRequest as cz, AgentCategoryGeneral as d, SubAgentsValidateSubject as d$, type PlanStatusTS as d0, type PlannedStep as d1, type ProcessJobTriggerResult as d2, type PublicWidgetConfig as d3, type PublisherType as d4, PublisherTypeEloquent as d5, PublisherTypePartner as d6, type PublisherTypeTS as d7, type ReactAgentConfig as d8, ReactAgentExecuteSubject as d9, SkillUserConfigListSubject as dA, type SkillUserConfigResponse as dB, SkillUserConfigUpdateSubject as dC, SkillsCreateSubject as dD, SkillsCreatedSubject as dE, SkillsDeleteSubject as dF, SkillsDeletedSubject as dG, SkillsGetByIDsSubject as dH, SkillsGetSubject as dI, type SkillsListResponse as dJ, SkillsListSubject as dK, SkillsUpdateOrgConfigSubject as dL, SkillsUpdateSubject as dM, SkillsUpdatedSubject as dN, type SubAgent as dO, type SubAgentResponse as dP, SubAgentsCreateSubject as dQ, SubAgentsCreatedSubject as dR, SubAgentsDeleteSubject as dS, SubAgentsDeletedSubject as dT, SubAgentsExecuteSubject as dU, SubAgentsGetByIDsSubject as dV, SubAgentsGetSubject as dW, type SubAgentsListResponse as dX, SubAgentsListSubject as dY, SubAgentsUpdateSubject as dZ, SubAgentsUpdatedSubject as d_, ReactAgentStatusSubject as da, ReactAgentStopSubject as db, type ResolveSkillConfigRequest as dc, type ResolveSkillConfigResponse as dd, type RetryPolicy as de, RuntimeJobCompletedSubject as df, RuntimeJobExecuteSubject as dg, type SaveWidgetConfigRequest as dh, type SaveWidgetConfigResponse as di, type SetDefaultWidgetRequest as dj, type Skill as dk, type SkillCategory as dl, SkillCategoryAnalysis as dm, SkillCategoryCommunication as dn, SkillCategoryCreative as dp, SkillCategoryCustom as dq, SkillCategoryIntegration as dr, SkillCategoryProductivity as ds, type SkillCategoryTS as dt, SkillResolveConfigSubject as du, type SkillResponse as dv, type SkillUserConfig as dw, SkillUserConfigDeleteSubject as dx, SkillUserConfigGetSubject as dy, type SkillUserConfigListResponse as dz, AgentCategoryHR as e, type TTLCleanupRequest as e0, type TTLCleanupResponse as e1, type TemplateCategoryCount as e2, type TemplateFilters as e3, type TemplateStatus as e4, TemplateStatusDraft as e5, TemplateStatusPublished as e6, type TemplateStatusTS as e7, type ToolConfig as e8, type ToolDefinition as e9, type UpdateAgentSkillConfigRequest as eA, type UpdateAgentWidgetRequest as eB, type UpdateOrgAgentsRequest as eC, type UpdateOrgAgentsResponse as eD, type UpdateSkillOrgConfigRequest as eE, type UpdateSkillRequest as eF, type UpdateSkillUserConfigRequest as eG, type UpdateSubAgentRequest as eH, type UpdateToolDefinitionRequest as eI, type UserSuggestedAction as eJ, type UserSuggestedActionsConfig as eK, type UserSuggestedActionsRequest as eL, type UserSuggestedActionsResponse as eM, type ValidationError as eN, type ValidationErrors as eO, type WidgetAppearance as eP, type WidgetBehavior as eQ, type WidgetConfig as eR, WidgetConfigGetByAgentSubject as eS, WidgetConfigSaveSubject as eT, type WidgetSecurity as eU, WorkflowAgentGetSubject as eV, WorkflowAgentUpdateSubject as eW, type ToolDefinitionResponse as ea, ToolDefinitionsCreateSubject as eb, ToolDefinitionsCreatedSubject as ec, ToolDefinitionsDeleteSubject as ed, ToolDefinitionsDeletedSubject as ee, ToolDefinitionsExecuteSubject as ef, ToolDefinitionsGetByIDsSubject as eg, ToolDefinitionsGetSubject as eh, type ToolDefinitionsListResponse as ei, ToolDefinitionsListSubject as ej, ToolDefinitionsUpdateSubject as ek, ToolDefinitionsUpdatedSubject as el, ToolDefinitionsValidateSubject as em, type ToolExecution as en, type ToolExecutionPolicy as eo, type ToolExecutionProgress as ep, type ToolExecutionStatus as eq, ToolExecutionStatusCompleted as er, ToolExecutionStatusExecuting as es, ToolExecutionStatusFailed as et, ToolExecutionStatusSkipped as eu, ToolExecutionStatusStarted as ev, type ToolExecutionStatusTS as ew, ToolExecutionStatusTimeout as ex, type UpdateAgentJobRequest as ey, type UpdateAgentRequest as ez, AgentCategoryMarketing as f, AgentCategoryProductivity as g, AgentCategoryResearch as h, AgentCategorySales as i, AgentCategorySupport as j, type AgentCategoryTS as k, AgentCategoryWriting as l, AgentChatCreateSubject as m, AgentChatGetSubject as n, AgentChatUpdateSubject as o, AgentChatValidateSubject as p, AgentCloneSubject as q, type AgentContext as r, type AgentContextConfig as s, AgentCreateSubject as t, AgentCreatedSubject as u, AgentDeleteSubject as v, AgentDeletedSubject as w, AgentEnsureDefaultSubject as x, AgentExecuteStatusSubject as y, AgentExecuteStopSubject as z };
@@ -1,7 +1,7 @@
1
1
  import { ApiClientOptions, ApiResponse } from '@elqnt/api-client';
2
2
  import { ResponseMetadata } from '@elqnt/types';
3
- import { cg as ListAgentsResponse, ci as ListAgentsSummaryResponse, cb as AgentResponse, b2 as Agent, a1 as SkillsListResponse, a0 as SkillResponse, a3 as GetSkillsByIDsResponse, aM as Skill, ac as SkillUserConfigResponse, ad as SkillUserConfigListResponse, af as ResolveSkillConfigResponse, K as SubAgentsListResponse, S as SubAgentResponse, bk as SubAgent, eS as ListAgentWidgetsResponse, eM as AgentWidgetResponse, eC as AgentWidget, z as ToolDefinitionsListResponse, T as ToolDefinitionResponse, O as GetToolDefinitionsByIDsResponse, ba as ToolDefinition, al as AgentJobsListResponse, ak as AgentJobResponse, bR as AgentJob } from '../agent-models-BdtFKjV3.mjs';
4
- export { b9 as AgentSummary, aO as SkillUserConfig } from '../agent-models-BdtFKjV3.mjs';
3
+ import { A as Agent, ai as AgentResponse, Z as AgentJob, a4 as AgentJobResponse, dk as Skill, dv as SkillResponse, dO as SubAgent, dP as SubAgentResponse, e9 as ToolDefinition, ea as ToolDefinitionResponse, aY as AgentWidget, aZ as AgentWidgetResponse, dB as SkillUserConfigResponse, bZ as GetSkillsByIDsResponse, c3 as GetToolDefinitionsByIDsResponse, aa as AgentJobsListResponse, cC as ListAgentsResponse, cE as ListAgentsSummaryResponse, dz as SkillUserConfigListResponse, dJ as SkillsListResponse, dX as SubAgentsListResponse, ei as ToolDefinitionsListResponse, cA as ListAgentWidgetsResponse, dd as ResolveSkillConfigResponse } from '../agent-models-C36pvpUb.mjs';
4
+ export { aF as AgentSummary, dw as SkillUserConfig } from '../agent-models-C36pvpUb.mjs';
5
5
 
6
6
  /**
7
7
  * Agents API functions
@@ -136,5 +136,22 @@ interface SkillCategoriesResponse {
136
136
  metadata: ResponseMetadata;
137
137
  }
138
138
  declare function getSkillCategoriesApi(options: ApiClientOptions): Promise<ApiResponse<SkillCategoriesResponse>>;
139
+ interface ProvisionAgentsResponse {
140
+ agents?: Agent[];
141
+ agentsCreated: number;
142
+ subAgentsCreated: number;
143
+ toolsCreated: number;
144
+ skillsCreated: number;
145
+ success: boolean;
146
+ metadata: ResponseMetadata;
147
+ }
148
+ /**
149
+ * Provision default agents for an organization.
150
+ * Creates or updates agents, tools, sub-agents, and skills in bulk.
151
+ *
152
+ * @param definitions - Array of DefaultDefinitions to provision
153
+ * @param options - API client options (baseUrl, orgId)
154
+ */
155
+ declare function provisionAgentsApi(definitions: unknown[], options: ApiClientOptions): Promise<ApiResponse<ProvisionAgentsResponse>>;
139
156
 
140
- export { Agent, AgentJob, AgentJobResponse, AgentJobsListResponse, AgentWidget, type AnalyticsDataResponse, type DateFilter, GetToolDefinitionsByIDsResponse, ResolveSkillConfigResponse, Skill, type SkillCategoriesResponse, SkillUserConfigListResponse, SkillUserConfigResponse, SubAgent, ToolDefinition, ToolDefinitionResponse, ToolDefinitionsListResponse, createAgentApi, createAgentJobApi, createSkillApi, createSubAgentApi, createToolDefinitionApi, createWidgetApi, deleteAgentApi, deleteAgentJobApi, deleteSkillApi, deleteSkillUserConfigApi, deleteSubAgentApi, deleteToolDefinitionApi, deleteWidgetApi, getAgentApi, getAgentCSATAnalyticsApi, getAgentChatsAnalyticsApi, getAgentJobApi, getAgentListAnalyticsApi, getDefaultAgentApi, getDefaultWidgetApi, getSkillApi, getSkillCategoriesApi, getSkillUserConfigApi, getSkillsByIdsApi, getSubAgentApi, getTaskOutcomesApi, getToolDefinitionApi, getToolDefinitionsByIdsApi, getWidgetApi, getWidgetByWidgetIdApi, listAgentJobsApi, listAgentsApi, listAgentsSummaryApi, listSkillUserConfigsApi, listSkillsApi, listSubAgentsApi, listToolDefinitionsApi, listWidgetsApi, pauseAgentJobApi, resolveSkillConfigApi, resumeAgentJobApi, searchSkillsApi, setDefaultWidgetApi, updateAgentApi, updateAgentJobApi, updateSkillApi, updateSkillUserConfigApi, updateSubAgentApi, updateToolDefinitionApi, updateWidgetApi };
157
+ export { Agent, AgentJob, AgentJobResponse, AgentJobsListResponse, AgentWidget, type AnalyticsDataResponse, type DateFilter, GetToolDefinitionsByIDsResponse, type ProvisionAgentsResponse, ResolveSkillConfigResponse, Skill, type SkillCategoriesResponse, SkillUserConfigListResponse, SkillUserConfigResponse, SubAgent, ToolDefinition, ToolDefinitionResponse, ToolDefinitionsListResponse, createAgentApi, createAgentJobApi, createSkillApi, createSubAgentApi, createToolDefinitionApi, createWidgetApi, deleteAgentApi, deleteAgentJobApi, deleteSkillApi, deleteSkillUserConfigApi, deleteSubAgentApi, deleteToolDefinitionApi, deleteWidgetApi, getAgentApi, getAgentCSATAnalyticsApi, getAgentChatsAnalyticsApi, getAgentJobApi, getAgentListAnalyticsApi, getDefaultAgentApi, getDefaultWidgetApi, getSkillApi, getSkillCategoriesApi, getSkillUserConfigApi, getSkillsByIdsApi, getSubAgentApi, getTaskOutcomesApi, getToolDefinitionApi, getToolDefinitionsByIdsApi, getWidgetApi, getWidgetByWidgetIdApi, listAgentJobsApi, listAgentsApi, listAgentsSummaryApi, listSkillUserConfigsApi, listSkillsApi, listSubAgentsApi, listToolDefinitionsApi, listWidgetsApi, pauseAgentJobApi, provisionAgentsApi, resolveSkillConfigApi, resumeAgentJobApi, searchSkillsApi, setDefaultWidgetApi, updateAgentApi, updateAgentJobApi, updateSkillApi, updateSkillUserConfigApi, updateSubAgentApi, updateToolDefinitionApi, updateWidgetApi };
@@ -1,7 +1,7 @@
1
1
  import { ApiClientOptions, ApiResponse } from '@elqnt/api-client';
2
2
  import { ResponseMetadata } from '@elqnt/types';
3
- import { cg as ListAgentsResponse, ci as ListAgentsSummaryResponse, cb as AgentResponse, b2 as Agent, a1 as SkillsListResponse, a0 as SkillResponse, a3 as GetSkillsByIDsResponse, aM as Skill, ac as SkillUserConfigResponse, ad as SkillUserConfigListResponse, af as ResolveSkillConfigResponse, K as SubAgentsListResponse, S as SubAgentResponse, bk as SubAgent, eS as ListAgentWidgetsResponse, eM as AgentWidgetResponse, eC as AgentWidget, z as ToolDefinitionsListResponse, T as ToolDefinitionResponse, O as GetToolDefinitionsByIDsResponse, ba as ToolDefinition, al as AgentJobsListResponse, ak as AgentJobResponse, bR as AgentJob } from '../agent-models-BdtFKjV3.js';
4
- export { b9 as AgentSummary, aO as SkillUserConfig } from '../agent-models-BdtFKjV3.js';
3
+ import { A as Agent, ai as AgentResponse, Z as AgentJob, a4 as AgentJobResponse, dk as Skill, dv as SkillResponse, dO as SubAgent, dP as SubAgentResponse, e9 as ToolDefinition, ea as ToolDefinitionResponse, aY as AgentWidget, aZ as AgentWidgetResponse, dB as SkillUserConfigResponse, bZ as GetSkillsByIDsResponse, c3 as GetToolDefinitionsByIDsResponse, aa as AgentJobsListResponse, cC as ListAgentsResponse, cE as ListAgentsSummaryResponse, dz as SkillUserConfigListResponse, dJ as SkillsListResponse, dX as SubAgentsListResponse, ei as ToolDefinitionsListResponse, cA as ListAgentWidgetsResponse, dd as ResolveSkillConfigResponse } from '../agent-models-C36pvpUb.js';
4
+ export { aF as AgentSummary, dw as SkillUserConfig } from '../agent-models-C36pvpUb.js';
5
5
 
6
6
  /**
7
7
  * Agents API functions
@@ -136,5 +136,22 @@ interface SkillCategoriesResponse {
136
136
  metadata: ResponseMetadata;
137
137
  }
138
138
  declare function getSkillCategoriesApi(options: ApiClientOptions): Promise<ApiResponse<SkillCategoriesResponse>>;
139
+ interface ProvisionAgentsResponse {
140
+ agents?: Agent[];
141
+ agentsCreated: number;
142
+ subAgentsCreated: number;
143
+ toolsCreated: number;
144
+ skillsCreated: number;
145
+ success: boolean;
146
+ metadata: ResponseMetadata;
147
+ }
148
+ /**
149
+ * Provision default agents for an organization.
150
+ * Creates or updates agents, tools, sub-agents, and skills in bulk.
151
+ *
152
+ * @param definitions - Array of DefaultDefinitions to provision
153
+ * @param options - API client options (baseUrl, orgId)
154
+ */
155
+ declare function provisionAgentsApi(definitions: unknown[], options: ApiClientOptions): Promise<ApiResponse<ProvisionAgentsResponse>>;
139
156
 
140
- export { Agent, AgentJob, AgentJobResponse, AgentJobsListResponse, AgentWidget, type AnalyticsDataResponse, type DateFilter, GetToolDefinitionsByIDsResponse, ResolveSkillConfigResponse, Skill, type SkillCategoriesResponse, SkillUserConfigListResponse, SkillUserConfigResponse, SubAgent, ToolDefinition, ToolDefinitionResponse, ToolDefinitionsListResponse, createAgentApi, createAgentJobApi, createSkillApi, createSubAgentApi, createToolDefinitionApi, createWidgetApi, deleteAgentApi, deleteAgentJobApi, deleteSkillApi, deleteSkillUserConfigApi, deleteSubAgentApi, deleteToolDefinitionApi, deleteWidgetApi, getAgentApi, getAgentCSATAnalyticsApi, getAgentChatsAnalyticsApi, getAgentJobApi, getAgentListAnalyticsApi, getDefaultAgentApi, getDefaultWidgetApi, getSkillApi, getSkillCategoriesApi, getSkillUserConfigApi, getSkillsByIdsApi, getSubAgentApi, getTaskOutcomesApi, getToolDefinitionApi, getToolDefinitionsByIdsApi, getWidgetApi, getWidgetByWidgetIdApi, listAgentJobsApi, listAgentsApi, listAgentsSummaryApi, listSkillUserConfigsApi, listSkillsApi, listSubAgentsApi, listToolDefinitionsApi, listWidgetsApi, pauseAgentJobApi, resolveSkillConfigApi, resumeAgentJobApi, searchSkillsApi, setDefaultWidgetApi, updateAgentApi, updateAgentJobApi, updateSkillApi, updateSkillUserConfigApi, updateSubAgentApi, updateToolDefinitionApi, updateWidgetApi };
157
+ export { Agent, AgentJob, AgentJobResponse, AgentJobsListResponse, AgentWidget, type AnalyticsDataResponse, type DateFilter, GetToolDefinitionsByIDsResponse, type ProvisionAgentsResponse, ResolveSkillConfigResponse, Skill, type SkillCategoriesResponse, SkillUserConfigListResponse, SkillUserConfigResponse, SubAgent, ToolDefinition, ToolDefinitionResponse, ToolDefinitionsListResponse, createAgentApi, createAgentJobApi, createSkillApi, createSubAgentApi, createToolDefinitionApi, createWidgetApi, deleteAgentApi, deleteAgentJobApi, deleteSkillApi, deleteSkillUserConfigApi, deleteSubAgentApi, deleteToolDefinitionApi, deleteWidgetApi, getAgentApi, getAgentCSATAnalyticsApi, getAgentChatsAnalyticsApi, getAgentJobApi, getAgentListAnalyticsApi, getDefaultAgentApi, getDefaultWidgetApi, getSkillApi, getSkillCategoriesApi, getSkillUserConfigApi, getSkillsByIdsApi, getSubAgentApi, getTaskOutcomesApi, getToolDefinitionApi, getToolDefinitionsByIdsApi, getWidgetApi, getWidgetByWidgetIdApi, listAgentJobsApi, listAgentsApi, listAgentsSummaryApi, listSkillUserConfigsApi, listSkillsApi, listSubAgentsApi, listToolDefinitionsApi, listWidgetsApi, pauseAgentJobApi, provisionAgentsApi, resolveSkillConfigApi, resumeAgentJobApi, searchSkillsApi, setDefaultWidgetApi, updateAgentApi, updateAgentJobApi, updateSkillApi, updateSkillUserConfigApi, updateSubAgentApi, updateToolDefinitionApi, updateWidgetApi };
package/dist/api/index.js CHANGED
@@ -50,8 +50,8 @@
50
50
 
51
51
 
52
52
 
53
- var _chunkADOBVUUSjs = require('../chunk-ADOBVUUS.js');
54
53
 
54
+ var _chunkSKZS3AITjs = require('../chunk-SKZS3AIT.js');
55
55
 
56
56
 
57
57
 
@@ -102,5 +102,7 @@ var _chunkADOBVUUSjs = require('../chunk-ADOBVUUS.js');
102
102
 
103
103
 
104
104
 
105
- exports.createAgentApi = _chunkADOBVUUSjs.createAgentApi; exports.createAgentJobApi = _chunkADOBVUUSjs.createAgentJobApi; exports.createSkillApi = _chunkADOBVUUSjs.createSkillApi; exports.createSubAgentApi = _chunkADOBVUUSjs.createSubAgentApi; exports.createToolDefinitionApi = _chunkADOBVUUSjs.createToolDefinitionApi; exports.createWidgetApi = _chunkADOBVUUSjs.createWidgetApi; exports.deleteAgentApi = _chunkADOBVUUSjs.deleteAgentApi; exports.deleteAgentJobApi = _chunkADOBVUUSjs.deleteAgentJobApi; exports.deleteSkillApi = _chunkADOBVUUSjs.deleteSkillApi; exports.deleteSkillUserConfigApi = _chunkADOBVUUSjs.deleteSkillUserConfigApi; exports.deleteSubAgentApi = _chunkADOBVUUSjs.deleteSubAgentApi; exports.deleteToolDefinitionApi = _chunkADOBVUUSjs.deleteToolDefinitionApi; exports.deleteWidgetApi = _chunkADOBVUUSjs.deleteWidgetApi; exports.getAgentApi = _chunkADOBVUUSjs.getAgentApi; exports.getAgentCSATAnalyticsApi = _chunkADOBVUUSjs.getAgentCSATAnalyticsApi; exports.getAgentChatsAnalyticsApi = _chunkADOBVUUSjs.getAgentChatsAnalyticsApi; exports.getAgentJobApi = _chunkADOBVUUSjs.getAgentJobApi; exports.getAgentListAnalyticsApi = _chunkADOBVUUSjs.getAgentListAnalyticsApi; exports.getDefaultAgentApi = _chunkADOBVUUSjs.getDefaultAgentApi; exports.getDefaultWidgetApi = _chunkADOBVUUSjs.getDefaultWidgetApi; exports.getSkillApi = _chunkADOBVUUSjs.getSkillApi; exports.getSkillCategoriesApi = _chunkADOBVUUSjs.getSkillCategoriesApi; exports.getSkillUserConfigApi = _chunkADOBVUUSjs.getSkillUserConfigApi; exports.getSkillsByIdsApi = _chunkADOBVUUSjs.getSkillsByIdsApi; exports.getSubAgentApi = _chunkADOBVUUSjs.getSubAgentApi; exports.getTaskOutcomesApi = _chunkADOBVUUSjs.getTaskOutcomesApi; exports.getToolDefinitionApi = _chunkADOBVUUSjs.getToolDefinitionApi; exports.getToolDefinitionsByIdsApi = _chunkADOBVUUSjs.getToolDefinitionsByIdsApi; exports.getWidgetApi = _chunkADOBVUUSjs.getWidgetApi; exports.getWidgetByWidgetIdApi = _chunkADOBVUUSjs.getWidgetByWidgetIdApi; exports.listAgentJobsApi = _chunkADOBVUUSjs.listAgentJobsApi; exports.listAgentsApi = _chunkADOBVUUSjs.listAgentsApi; exports.listAgentsSummaryApi = _chunkADOBVUUSjs.listAgentsSummaryApi; exports.listSkillUserConfigsApi = _chunkADOBVUUSjs.listSkillUserConfigsApi; exports.listSkillsApi = _chunkADOBVUUSjs.listSkillsApi; exports.listSubAgentsApi = _chunkADOBVUUSjs.listSubAgentsApi; exports.listToolDefinitionsApi = _chunkADOBVUUSjs.listToolDefinitionsApi; exports.listWidgetsApi = _chunkADOBVUUSjs.listWidgetsApi; exports.pauseAgentJobApi = _chunkADOBVUUSjs.pauseAgentJobApi; exports.resolveSkillConfigApi = _chunkADOBVUUSjs.resolveSkillConfigApi; exports.resumeAgentJobApi = _chunkADOBVUUSjs.resumeAgentJobApi; exports.searchSkillsApi = _chunkADOBVUUSjs.searchSkillsApi; exports.setDefaultWidgetApi = _chunkADOBVUUSjs.setDefaultWidgetApi; exports.updateAgentApi = _chunkADOBVUUSjs.updateAgentApi; exports.updateAgentJobApi = _chunkADOBVUUSjs.updateAgentJobApi; exports.updateSkillApi = _chunkADOBVUUSjs.updateSkillApi; exports.updateSkillUserConfigApi = _chunkADOBVUUSjs.updateSkillUserConfigApi; exports.updateSubAgentApi = _chunkADOBVUUSjs.updateSubAgentApi; exports.updateToolDefinitionApi = _chunkADOBVUUSjs.updateToolDefinitionApi; exports.updateWidgetApi = _chunkADOBVUUSjs.updateWidgetApi;
105
+
106
+
107
+ exports.createAgentApi = _chunkSKZS3AITjs.createAgentApi; exports.createAgentJobApi = _chunkSKZS3AITjs.createAgentJobApi; exports.createSkillApi = _chunkSKZS3AITjs.createSkillApi; exports.createSubAgentApi = _chunkSKZS3AITjs.createSubAgentApi; exports.createToolDefinitionApi = _chunkSKZS3AITjs.createToolDefinitionApi; exports.createWidgetApi = _chunkSKZS3AITjs.createWidgetApi; exports.deleteAgentApi = _chunkSKZS3AITjs.deleteAgentApi; exports.deleteAgentJobApi = _chunkSKZS3AITjs.deleteAgentJobApi; exports.deleteSkillApi = _chunkSKZS3AITjs.deleteSkillApi; exports.deleteSkillUserConfigApi = _chunkSKZS3AITjs.deleteSkillUserConfigApi; exports.deleteSubAgentApi = _chunkSKZS3AITjs.deleteSubAgentApi; exports.deleteToolDefinitionApi = _chunkSKZS3AITjs.deleteToolDefinitionApi; exports.deleteWidgetApi = _chunkSKZS3AITjs.deleteWidgetApi; exports.getAgentApi = _chunkSKZS3AITjs.getAgentApi; exports.getAgentCSATAnalyticsApi = _chunkSKZS3AITjs.getAgentCSATAnalyticsApi; exports.getAgentChatsAnalyticsApi = _chunkSKZS3AITjs.getAgentChatsAnalyticsApi; exports.getAgentJobApi = _chunkSKZS3AITjs.getAgentJobApi; exports.getAgentListAnalyticsApi = _chunkSKZS3AITjs.getAgentListAnalyticsApi; exports.getDefaultAgentApi = _chunkSKZS3AITjs.getDefaultAgentApi; exports.getDefaultWidgetApi = _chunkSKZS3AITjs.getDefaultWidgetApi; exports.getSkillApi = _chunkSKZS3AITjs.getSkillApi; exports.getSkillCategoriesApi = _chunkSKZS3AITjs.getSkillCategoriesApi; exports.getSkillUserConfigApi = _chunkSKZS3AITjs.getSkillUserConfigApi; exports.getSkillsByIdsApi = _chunkSKZS3AITjs.getSkillsByIdsApi; exports.getSubAgentApi = _chunkSKZS3AITjs.getSubAgentApi; exports.getTaskOutcomesApi = _chunkSKZS3AITjs.getTaskOutcomesApi; exports.getToolDefinitionApi = _chunkSKZS3AITjs.getToolDefinitionApi; exports.getToolDefinitionsByIdsApi = _chunkSKZS3AITjs.getToolDefinitionsByIdsApi; exports.getWidgetApi = _chunkSKZS3AITjs.getWidgetApi; exports.getWidgetByWidgetIdApi = _chunkSKZS3AITjs.getWidgetByWidgetIdApi; exports.listAgentJobsApi = _chunkSKZS3AITjs.listAgentJobsApi; exports.listAgentsApi = _chunkSKZS3AITjs.listAgentsApi; exports.listAgentsSummaryApi = _chunkSKZS3AITjs.listAgentsSummaryApi; exports.listSkillUserConfigsApi = _chunkSKZS3AITjs.listSkillUserConfigsApi; exports.listSkillsApi = _chunkSKZS3AITjs.listSkillsApi; exports.listSubAgentsApi = _chunkSKZS3AITjs.listSubAgentsApi; exports.listToolDefinitionsApi = _chunkSKZS3AITjs.listToolDefinitionsApi; exports.listWidgetsApi = _chunkSKZS3AITjs.listWidgetsApi; exports.pauseAgentJobApi = _chunkSKZS3AITjs.pauseAgentJobApi; exports.provisionAgentsApi = _chunkSKZS3AITjs.provisionAgentsApi; exports.resolveSkillConfigApi = _chunkSKZS3AITjs.resolveSkillConfigApi; exports.resumeAgentJobApi = _chunkSKZS3AITjs.resumeAgentJobApi; exports.searchSkillsApi = _chunkSKZS3AITjs.searchSkillsApi; exports.setDefaultWidgetApi = _chunkSKZS3AITjs.setDefaultWidgetApi; exports.updateAgentApi = _chunkSKZS3AITjs.updateAgentApi; exports.updateAgentJobApi = _chunkSKZS3AITjs.updateAgentJobApi; exports.updateSkillApi = _chunkSKZS3AITjs.updateSkillApi; exports.updateSkillUserConfigApi = _chunkSKZS3AITjs.updateSkillUserConfigApi; exports.updateSubAgentApi = _chunkSKZS3AITjs.updateSubAgentApi; exports.updateToolDefinitionApi = _chunkSKZS3AITjs.updateToolDefinitionApi; exports.updateWidgetApi = _chunkSKZS3AITjs.updateWidgetApi;
106
108
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/agents/dist/api/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,+sGAAC","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/agents/dist/api/index.js"}
1
+ {"version":3,"sources":["/home/runner/work/eloquent/eloquent/packages/@elqnt/agents/dist/api/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,ixGAAC","file":"/home/runner/work/eloquent/eloquent/packages/@elqnt/agents/dist/api/index.js"}
@@ -39,6 +39,7 @@ import {
39
39
  listToolDefinitionsApi,
40
40
  listWidgetsApi,
41
41
  pauseAgentJobApi,
42
+ provisionAgentsApi,
42
43
  resolveSkillConfigApi,
43
44
  resumeAgentJobApi,
44
45
  searchSkillsApi,
@@ -50,7 +51,7 @@ import {
50
51
  updateSubAgentApi,
51
52
  updateToolDefinitionApi,
52
53
  updateWidgetApi
53
- } from "../chunk-O3FM26FT.mjs";
54
+ } from "../chunk-XYJDCUUG.mjs";
54
55
  export {
55
56
  createAgentApi,
56
57
  createAgentJobApi,
@@ -91,6 +92,7 @@ export {
91
92
  listToolDefinitionsApi,
92
93
  listWidgetsApi,
93
94
  pauseAgentJobApi,
95
+ provisionAgentsApi,
94
96
  resolveSkillConfigApi,
95
97
  resumeAgentJobApi,
96
98
  searchSkillsApi,
@@ -1,6 +1,6 @@
1
1
  import { ApiResponse } from '@elqnt/api-client';
2
2
  import { ResponseMetadata } from '@elqnt/types';
3
- import { cg as ListAgentsResponse, ci as ListAgentsSummaryResponse, cb as AgentResponse, b2 as Agent, a1 as SkillsListResponse, a0 as SkillResponse, a3 as GetSkillsByIDsResponse, aM as Skill, ac as SkillUserConfigResponse, ad as SkillUserConfigListResponse, af as ResolveSkillConfigResponse, K as SubAgentsListResponse, S as SubAgentResponse, bk as SubAgent, z as ToolDefinitionsListResponse, T as ToolDefinitionResponse, O as GetToolDefinitionsByIDsResponse, ba as ToolDefinition, al as AgentJobsListResponse, ak as AgentJobResponse, bR as AgentJob, eS as ListAgentWidgetsResponse, eM as AgentWidgetResponse, eC as AgentWidget } from '../agent-models-BdtFKjV3.mjs';
3
+ import { Z as AgentJob, a4 as AgentJobResponse, A as Agent, ai as AgentResponse, dk as Skill, dv as SkillResponse, dO as SubAgent, dP as SubAgentResponse, e9 as ToolDefinition, ea as ToolDefinitionResponse, aY as AgentWidget, aZ as AgentWidgetResponse, dB as SkillUserConfigResponse, bZ as GetSkillsByIDsResponse, c3 as GetToolDefinitionsByIDsResponse, aa as AgentJobsListResponse, cC as ListAgentsResponse, cE as ListAgentsSummaryResponse, dz as SkillUserConfigListResponse, dJ as SkillsListResponse, dX as SubAgentsListResponse, ei as ToolDefinitionsListResponse, cA as ListAgentWidgetsResponse, dd as ResolveSkillConfigResponse } from '../agent-models-C36pvpUb.mjs';
4
4
 
5
5
  /**
6
6
  * Server-side Agents API
@@ -1,6 +1,6 @@
1
1
  import { ApiResponse } from '@elqnt/api-client';
2
2
  import { ResponseMetadata } from '@elqnt/types';
3
- import { cg as ListAgentsResponse, ci as ListAgentsSummaryResponse, cb as AgentResponse, b2 as Agent, a1 as SkillsListResponse, a0 as SkillResponse, a3 as GetSkillsByIDsResponse, aM as Skill, ac as SkillUserConfigResponse, ad as SkillUserConfigListResponse, af as ResolveSkillConfigResponse, K as SubAgentsListResponse, S as SubAgentResponse, bk as SubAgent, z as ToolDefinitionsListResponse, T as ToolDefinitionResponse, O as GetToolDefinitionsByIDsResponse, ba as ToolDefinition, al as AgentJobsListResponse, ak as AgentJobResponse, bR as AgentJob, eS as ListAgentWidgetsResponse, eM as AgentWidgetResponse, eC as AgentWidget } from '../agent-models-BdtFKjV3.js';
3
+ import { Z as AgentJob, a4 as AgentJobResponse, A as Agent, ai as AgentResponse, dk as Skill, dv as SkillResponse, dO as SubAgent, dP as SubAgentResponse, e9 as ToolDefinition, ea as ToolDefinitionResponse, aY as AgentWidget, aZ as AgentWidgetResponse, dB as SkillUserConfigResponse, bZ as GetSkillsByIDsResponse, c3 as GetToolDefinitionsByIDsResponse, aa as AgentJobsListResponse, cC as ListAgentsResponse, cE as ListAgentsSummaryResponse, dz as SkillUserConfigListResponse, dJ as SkillsListResponse, dX as SubAgentsListResponse, ei as ToolDefinitionsListResponse, cA as ListAgentWidgetsResponse, dd as ResolveSkillConfigResponse } from '../agent-models-C36pvpUb.js';
4
4
 
5
5
  /**
6
6
  * Server-side Agents API
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/agents/dist/api/server.js","../../api/server.ts"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA;ACqBA,kDAA4D;AAqD5D,SAAS,mBAAA,CAAoB,OAAA,EAA2B,OAAA,EAAyC,KAAA,EAAO,IAAA,EAA6B;AACnI,EAAA,OAAO;AAAA,IACL,UAAA,EAAY,OAAA,CAAQ,UAAA;AAAA,IACpB,SAAA,EAAW,OAAA,CAAQ,SAAA;AAAA,IACnB,KAAA,EAAO,OAAA,CAAQ,KAAA;AAAA,IACf,MAAA,EAAQ,OAAA,CAAQ,MAAA;AAAA,IAChB,SAAA,EAAW,OAAA,CAAQ,SAAA;AAAA,IACnB,OAAA,EAAS,OAAA,CAAQ,OAAA;AAAA,IACjB,KAAA,EAAO,OAAA,CAAQ,KAAA;AAAA,IACf,MAAA;AAAA,IACA;AAAA,EACF,CAAA;AACF;AAMA,MAAA,SAAsB,gBAAA,CAAiB,OAAA,EAAqE;AAC1G,EAAA,OAAO,sCAAA,gBAAiB,EAAkB,mBAAA,CAAoB,OAAA,EAAS,KAAK,CAAC,CAAA;AAC/E;AAEA,MAAA,SAAsB,uBAAA,CAAwB,OAAA,EAA4E;AACxH,EAAA,OAAO,sCAAA,wBAAiB,EAA0B,mBAAA,CAAoB,OAAA,EAAS,KAAK,CAAC,CAAA;AACvF;AAEA,MAAA,SAAsB,cAAA,CAAe,OAAA,EAAiB,OAAA,EAAgE;AACpH,EAAA,OAAO,sCAAA,CAAiB,eAAA,EAAkB,OAAO,CAAA,CAAA;AACnD;AAE+H;AACnF,EAAA;AAC5C;AAEgF;AAC7B,EAAA;AACnD;AAE4J;AACzG,EAAA;AACnD;AAE4G;AACxD,EAAA;AACpD;AAM4G;AAChE,EAAA;AAC5C;AAEsH;AACnE,EAAA;AACnD;AAEmI;AAChF,EAAA;AACnD;AAE+H;AACnF,EAAA;AAC5C;AAEgF;AAC7B,EAAA;AACnD;AAE4J;AACzG,EAAA;AACnD;AAOyH;AAC/F,EAAA;AAC1B;AAQE;AAEmC,EAAA;AACQ,EAAA;AACb,EAAA;AACmB,EAAA;AACnD;AAIE;AAQiD,EAAA;AACnD;AAIE;AAEmC,EAAA;AACQ,EAAA;AACb,EAAA;AACmB,EAAA;AACnD;AAIqD;AAChB,EAAA;AACQ,EAAA;AACG,EAAA;AACE,EAAA;AAClB,EAAA;AACN,EAAA;AAC1B;AAIE;AAGiD,EAAA;AACnD;AAQ+C;AACV,EAAA;AACc,EAAA;AACH,EAAA;AACV,EAAA;AACQ,EAAA;AAC9C;AAE4D;AACb,EAAA;AAC/C;AAEwE;AACzB,EAAA;AAC/C;AAE+D;AAChB,EAAA;AAC/C;AAE+D;AAChB,EAAA;AAC/C;AAQqD;AAChB,EAAA;AACc,EAAA;AACH,EAAA;AACO,EAAA;AACR,EAAA;AACT,EAAA;AACZ,EAAA;AAC1B;AAEiE;AACvC,EAAA;AAC1B;AAEmE;AACzC,EAAA;AAC1B;AAEiD;AACvB,EAAA;AAC1B;AAEiD;AACvB,EAAA;AAC1B;AAEiD;AACvB,EAAA;AAC1B;AAgB+C;AACV,EAAA;AACQ,EAAA;AACA,EAAA;AACI,EAAA;AACE,EAAA;AACF,EAAA;AACM,EAAA;AACR,EAAA;AACT,EAAA;AACS,EAAA;AAC/C;AAE0H;AAC1E,EAAA;AAChD;AAEsI;AACtF,EAAA;AAChD;AAEkF;AAClC,EAAA;AAChD;AAE6J;AAC7G,EAAA;AAChD;AAE4H;AAC5E,EAAA;AAChD;AAE6H;AAC7E,EAAA;AAChD;AAMoI;AACjF,EAAA;AACnD;AAE8D;AACX,EAAA;AACnD;AAEwF;AACrC,EAAA;AACnD;AAE8H;AACjF,EAAA;AAC7C;AAEyF;AAC5C,EAAA;AAC7C;AAE2D;AACd,EAAA;AAC7C;AAE+D;AAClB,EAAA;AAC7C;ADvLoD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/agents/dist/api/server.js","sourcesContent":[null,"/**\n * Server-side Agents API\n *\n * API functions for server-side usage (Server Actions, API routes, SSR).\n * Uses serverApiRequest which generates JWT tokens internally.\n *\n * @example\n * ```ts\n * // In a Next.js Server Action\n * \"use server\";\n * import { listAgentsServer, getAgentServer } from \"@elqnt/agents/api/server\";\n *\n * export async function getAgentsList(orgId: string) {\n * const response = await listAgentsServer({\n * gatewayUrl: process.env.API_GATEWAY_URL!,\n * jwtSecret: process.env.JWT_SECRET!,\n * orgId,\n * });\n * return response.data?.agents || [];\n * }\n * ```\n */\n\nimport { serverApiRequest, type ServerRequestOptions } from \"@elqnt/api-client/server\";\nimport type { ApiResponse } from \"@elqnt/api-client\";\nimport type { ResponseMetadata } from \"@elqnt/types\";\nimport type {\n Agent,\n AgentResponse,\n ListAgentsResponse,\n ListAgentsSummaryResponse,\n Skill,\n SkillResponse,\n SkillsListResponse,\n GetSkillsByIDsResponse,\n SubAgent,\n SubAgentResponse,\n SubAgentsListResponse,\n AgentWidget,\n AgentWidgetResponse,\n ListAgentWidgetsResponse,\n SkillUserConfigResponse,\n SkillUserConfigListResponse,\n ResolveSkillConfigResponse,\n ToolDefinition,\n ToolDefinitionResponse,\n ToolDefinitionsListResponse,\n GetToolDefinitionsByIDsResponse,\n AgentJob,\n AgentJobResponse,\n AgentJobsListResponse,\n} from \"../models\";\n\n// =============================================================================\n// TYPES\n// =============================================================================\n\nexport interface ServerApiOptions {\n /** API Gateway URL */\n gatewayUrl: string;\n /** JWT secret for token generation */\n jwtSecret: string;\n /** Organization ID */\n orgId: string;\n /** User ID (defaults to \"system\") */\n userId?: string;\n /** User email */\n userEmail?: string;\n /** Request timeout in ms */\n timeout?: number;\n /** Cache strategy */\n cache?: RequestCache;\n}\n\ntype RequestOpts = ServerRequestOptions & { gatewayUrl: string; jwtSecret: string };\n\nfunction buildRequestOptions(options: ServerApiOptions, method: ServerRequestOptions[\"method\"] = \"GET\", body?: unknown): RequestOpts {\n return {\n gatewayUrl: options.gatewayUrl,\n jwtSecret: options.jwtSecret,\n orgId: options.orgId,\n userId: options.userId,\n userEmail: options.userEmail,\n timeout: options.timeout,\n cache: options.cache,\n method,\n body,\n };\n}\n\n// =============================================================================\n// AGENTS\n// =============================================================================\n\nexport async function listAgentsServer(options: ServerApiOptions): Promise<ApiResponse<ListAgentsResponse>> {\n return serverApiRequest(\"/api/v1/agents\", buildRequestOptions(options, \"GET\"));\n}\n\nexport async function listAgentsSummaryServer(options: ServerApiOptions): Promise<ApiResponse<ListAgentsSummaryResponse>> {\n return serverApiRequest(\"/api/v1/agents/summary\", buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getAgentServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<AgentResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function createAgentServer(agent: Partial<Agent>, options: ServerApiOptions): Promise<ApiResponse<AgentResponse>> {\n return serverApiRequest(\"/api/v1/agents\", buildRequestOptions(options, \"POST\", { agent }));\n}\n\nexport async function updateAgentServer(agentId: string, agent: Partial<Agent>, options: ServerApiOptions): Promise<ApiResponse<AgentResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}`, buildRequestOptions(options, \"PUT\", { agent }));\n}\n\nexport async function deleteAgentServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/agents/${agentId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport async function getDefaultAgentServer(options: ServerApiOptions): Promise<ApiResponse<AgentResponse>> {\n return serverApiRequest(\"/api/v1/agents/default\", buildRequestOptions(options, \"GET\"));\n}\n\n// =============================================================================\n// SKILLS\n// =============================================================================\n\nexport async function listSkillsServer(options: ServerApiOptions): Promise<ApiResponse<SkillsListResponse>> {\n return serverApiRequest(\"/api/v1/skills\", buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getSkillServer(skillId: string, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>> {\n return serverApiRequest(`/api/v1/skills/${skillId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getSkillsByIdsServer(ids: string[], options: ServerApiOptions): Promise<ApiResponse<GetSkillsByIDsResponse>> {\n return serverApiRequest(\"/api/v1/skills/by-ids\", buildRequestOptions(options, \"POST\", { ids }));\n}\n\nexport async function createSkillServer(skill: Partial<Skill>, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>> {\n return serverApiRequest(\"/api/v1/skills\", buildRequestOptions(options, \"POST\", { skill }));\n}\n\nexport async function updateSkillServer(skillId: string, skill: Partial<Skill>, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>> {\n return serverApiRequest(`/api/v1/skills/${skillId}`, buildRequestOptions(options, \"PUT\", { skill }));\n}\n\nexport async function deleteSkillServer(skillId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/skills/${skillId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport interface SkillCategoriesResponse {\n categories: string[];\n metadata: ResponseMetadata;\n}\n\nexport async function getSkillCategoriesServer(options: ServerApiOptions): Promise<ApiResponse<SkillCategoriesResponse>> {\n return serverApiRequest(\"/api/v1/skills/categories\", buildRequestOptions(options, \"GET\"));\n}\n\n// =============================================================================\n// SKILL USER CONFIG\n// =============================================================================\n\nexport async function getSkillUserConfigServer(\n skillId: string,\n options: ServerApiOptions & { agentId?: string }\n): Promise<ApiResponse<SkillUserConfigResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n const query = params.toString();\n return serverApiRequest(`/api/v1/skills/${skillId}/user-config${query ? `?${query}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function updateSkillUserConfigServer(\n skillId: string,\n data: {\n enabled?: boolean;\n displayOrder?: number;\n config?: Record<string, unknown>;\n agentId?: string;\n },\n options: ServerApiOptions\n): Promise<ApiResponse<SkillUserConfigResponse>> {\n return serverApiRequest(`/api/v1/skills/${skillId}/user-config`, buildRequestOptions(options, \"PUT\", data));\n}\n\nexport async function deleteSkillUserConfigServer(\n skillId: string,\n options: ServerApiOptions & { agentId?: string }\n): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n const query = params.toString();\n return serverApiRequest(`/api/v1/skills/${skillId}/user-config${query ? `?${query}` : \"\"}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport async function listSkillUserConfigsServer(\n options: ServerApiOptions & { agentId?: string; limit?: number; offset?: number }\n): Promise<ApiResponse<SkillUserConfigListResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n if (options.limit) params.set(\"limit\", String(options.limit));\n if (options.offset) params.set(\"offset\", String(options.offset));\n const query = params.toString();\n return serverApiRequest(`/api/v1/skills/user-configs${query ? `?${query}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function resolveSkillConfigServer(\n skillId: string,\n agentId: string,\n options: ServerApiOptions\n): Promise<ApiResponse<ResolveSkillConfigResponse>> {\n return serverApiRequest(`/api/v1/skills/${skillId}/resolve-config?agentId=${agentId}`, buildRequestOptions(options, \"GET\"));\n}\n\n// =============================================================================\n// SUB-AGENTS\n// =============================================================================\n\nexport async function listSubAgentsServer(\n options: ServerApiOptions & { onlySystem?: boolean; enabled?: boolean }\n): Promise<ApiResponse<SubAgentsListResponse>> {\n const params = new URLSearchParams();\n if (options.onlySystem !== undefined) params.set(\"onlySystem\", String(options.onlySystem));\n if (options.enabled !== undefined) params.set(\"enabled\", String(options.enabled));\n const queryString = params.toString();\n return serverApiRequest(`/api/v1/subagents${queryString ? `?${queryString}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getSubAgentServer(subAgentId: string, options: ServerApiOptions): Promise<ApiResponse<SubAgentResponse>> {\n return serverApiRequest(`/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function createSubAgentServer(subAgent: Partial<SubAgent>, options: ServerApiOptions): Promise<ApiResponse<SubAgentResponse>> {\n return serverApiRequest(\"/api/v1/subagents\", buildRequestOptions(options, \"POST\", { subAgent }));\n}\n\nexport async function updateSubAgentServer(subAgentId: string, subAgent: Partial<SubAgent>, options: ServerApiOptions): Promise<ApiResponse<SubAgentResponse>> {\n return serverApiRequest(`/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, \"PUT\", { subAgent }));\n}\n\nexport async function deleteSubAgentServer(subAgentId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\n// =============================================================================\n// TOOL DEFINITIONS\n// =============================================================================\n\nexport async function listToolDefinitionsServer(\n options: ServerApiOptions & { onlySystem?: boolean; enabled?: boolean; limit?: number; offset?: number }\n): Promise<ApiResponse<ToolDefinitionsListResponse>> {\n const params = new URLSearchParams();\n if (options.onlySystem !== undefined) params.set(\"onlySystem\", String(options.onlySystem));\n if (options.enabled !== undefined) params.set(\"enabled\", String(options.enabled));\n if (options.limit !== undefined) params.set(\"limit\", String(options.limit));\n if (options.offset !== undefined) params.set(\"offset\", String(options.offset));\n const queryString = params.toString();\n return serverApiRequest(`/api/v1/tool-definitions${queryString ? `?${queryString}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getToolDefinitionServer(toolDefId: string, options: ServerApiOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return serverApiRequest(`/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getToolDefinitionsByIdsServer(ids: string[], options: ServerApiOptions): Promise<ApiResponse<GetToolDefinitionsByIDsResponse>> {\n return serverApiRequest(\"/api/v1/tool-definitions/by-ids\", buildRequestOptions(options, \"POST\", { ids }));\n}\n\nexport async function createToolDefinitionServer(toolDefinition: Partial<ToolDefinition>, options: ServerApiOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return serverApiRequest(\"/api/v1/tool-definitions\", buildRequestOptions(options, \"POST\", { toolDefinition }));\n}\n\nexport async function updateToolDefinitionServer(toolDefId: string, toolDefinition: Partial<ToolDefinition>, options: ServerApiOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return serverApiRequest(`/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, \"PUT\", { toolDefinition }));\n}\n\nexport async function deleteToolDefinitionServer(toolDefId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\n// =============================================================================\n// AGENT JOBS\n// =============================================================================\n\nexport async function listAgentJobsServer(\n options: ServerApiOptions & {\n agentId?: string;\n ownerId?: string;\n scope?: string;\n status?: string;\n frequency?: string;\n limit?: number;\n offset?: number;\n }\n): Promise<ApiResponse<AgentJobsListResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n if (options.ownerId) params.set(\"ownerId\", options.ownerId);\n if (options.scope) params.set(\"scope\", options.scope);\n if (options.status) params.set(\"status\", options.status);\n if (options.frequency) params.set(\"frequency\", options.frequency);\n if (options.limit !== undefined) params.set(\"limit\", String(options.limit));\n if (options.offset !== undefined) params.set(\"offset\", String(options.offset));\n const queryString = params.toString();\n return serverApiRequest(`/api/v1/agent-jobs${queryString ? `?${queryString}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function createAgentJobServer(job: Partial<AgentJob>, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(\"/api/v1/agent-jobs\", buildRequestOptions(options, \"POST\", { job }));\n}\n\nexport async function updateAgentJobServer(jobId: string, job: Partial<AgentJob>, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, \"PUT\", { job }));\n}\n\nexport async function deleteAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport async function pauseAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}/pause`, buildRequestOptions(options, \"POST\"));\n}\n\nexport async function resumeAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}/resume`, buildRequestOptions(options, \"POST\"));\n}\n\n// =============================================================================\n// WIDGETS\n// =============================================================================\n\nexport async function listWidgetsServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<ListAgentWidgetsResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}/widgets`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getDefaultWidgetServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}/widgets/default`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function createWidgetServer(agentId: string, widget: Partial<AgentWidget>, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}/widgets`, buildRequestOptions(options, \"POST\", { widget }));\n}\n\nexport async function getWidgetServer(widgetId: string, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return serverApiRequest(`/api/v1/widgets/${widgetId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function updateWidgetServer(widgetId: string, widget: Partial<AgentWidget>, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return serverApiRequest(`/api/v1/widgets/${widgetId}`, buildRequestOptions(options, \"PUT\", { widget }));\n}\n\nexport async function deleteWidgetServer(widgetId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/widgets/${widgetId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport async function setDefaultWidgetServer(widgetId: string, agentId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/widgets/${widgetId}/default`, buildRequestOptions(options, \"POST\", { agentId }));\n}\n\n// Re-export types\nexport type {\n Agent,\n AgentResponse,\n ListAgentsResponse,\n ListAgentsSummaryResponse,\n Skill,\n SkillResponse,\n SkillsListResponse,\n SubAgent,\n SubAgentResponse,\n SubAgentsListResponse,\n AgentWidget,\n AgentWidgetResponse,\n ListAgentWidgetsResponse,\n ToolDefinition,\n ToolDefinitionResponse,\n ToolDefinitionsListResponse,\n AgentJob,\n AgentJobResponse,\n AgentJobsListResponse,\n} from \"../models\";\n"]}
1
+ {"version":3,"sources":["/home/runner/work/eloquent/eloquent/packages/@elqnt/agents/dist/api/server.js","../../api/server.ts"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA;ACqBA,kDAA4D;AAqD5D,SAAS,mBAAA,CAAoB,OAAA,EAA2B,OAAA,EAAyC,KAAA,EAAO,IAAA,EAA6B;AACnI,EAAA,OAAO;AAAA,IACL,UAAA,EAAY,OAAA,CAAQ,UAAA;AAAA,IACpB,SAAA,EAAW,OAAA,CAAQ,SAAA;AAAA,IACnB,KAAA,EAAO,OAAA,CAAQ,KAAA;AAAA,IACf,MAAA,EAAQ,OAAA,CAAQ,MAAA;AAAA,IAChB,SAAA,EAAW,OAAA,CAAQ,SAAA;AAAA,IACnB,OAAA,EAAS,OAAA,CAAQ,OAAA;AAAA,IACjB,KAAA,EAAO,OAAA,CAAQ,KAAA;AAAA,IACf,MAAA;AAAA,IACA;AAAA,EACF,CAAA;AACF;AAMA,MAAA,SAAsB,gBAAA,CAAiB,OAAA,EAAqE;AAC1G,EAAA,OAAO,sCAAA,gBAAiB,EAAkB,mBAAA,CAAoB,OAAA,EAAS,KAAK,CAAC,CAAA;AAC/E;AAEA,MAAA,SAAsB,uBAAA,CAAwB,OAAA,EAA4E;AACxH,EAAA,OAAO,sCAAA,wBAAiB,EAA0B,mBAAA,CAAoB,OAAA,EAAS,KAAK,CAAC,CAAA;AACvF;AAEA,MAAA,SAAsB,cAAA,CAAe,OAAA,EAAiB,OAAA,EAAgE;AACpH,EAAA,OAAO,sCAAA,CAAiB,eAAA,EAAkB,OAAO,CAAA,CAAA;AACnD;AAE+H;AACnF,EAAA;AAC5C;AAEgF;AAC7B,EAAA;AACnD;AAE4J;AACzG,EAAA;AACnD;AAE4G;AACxD,EAAA;AACpD;AAM4G;AAChE,EAAA;AAC5C;AAEsH;AACnE,EAAA;AACnD;AAEmI;AAChF,EAAA;AACnD;AAE+H;AACnF,EAAA;AAC5C;AAEgF;AAC7B,EAAA;AACnD;AAE4J;AACzG,EAAA;AACnD;AAOyH;AAC/F,EAAA;AAC1B;AAQE;AAEmC,EAAA;AACQ,EAAA;AACb,EAAA;AACmB,EAAA;AACnD;AAIE;AAQiD,EAAA;AACnD;AAIE;AAEmC,EAAA;AACQ,EAAA;AACb,EAAA;AACmB,EAAA;AACnD;AAIqD;AAChB,EAAA;AACQ,EAAA;AACG,EAAA;AACE,EAAA;AAClB,EAAA;AACN,EAAA;AAC1B;AAIE;AAGiD,EAAA;AACnD;AAQ+C;AACV,EAAA;AACc,EAAA;AACH,EAAA;AACV,EAAA;AACQ,EAAA;AAC9C;AAE4D;AACb,EAAA;AAC/C;AAEwE;AACzB,EAAA;AAC/C;AAE+D;AAChB,EAAA;AAC/C;AAE+D;AAChB,EAAA;AAC/C;AAQqD;AAChB,EAAA;AACc,EAAA;AACH,EAAA;AACO,EAAA;AACR,EAAA;AACT,EAAA;AACZ,EAAA;AAC1B;AAEiE;AACvC,EAAA;AAC1B;AAEmE;AACzC,EAAA;AAC1B;AAEiD;AACvB,EAAA;AAC1B;AAEiD;AACvB,EAAA;AAC1B;AAEiD;AACvB,EAAA;AAC1B;AAgB+C;AACV,EAAA;AACQ,EAAA;AACA,EAAA;AACI,EAAA;AACE,EAAA;AACF,EAAA;AACM,EAAA;AACR,EAAA;AACT,EAAA;AACS,EAAA;AAC/C;AAE0H;AAC1E,EAAA;AAChD;AAEsI;AACtF,EAAA;AAChD;AAEkF;AAClC,EAAA;AAChD;AAE6J;AAC7G,EAAA;AAChD;AAE4H;AAC5E,EAAA;AAChD;AAE6H;AAC7E,EAAA;AAChD;AAMoI;AACjF,EAAA;AACnD;AAE8D;AACX,EAAA;AACnD;AAEwF;AACrC,EAAA;AACnD;AAE8H;AACjF,EAAA;AAC7C;AAEyF;AAC5C,EAAA;AAC7C;AAE2D;AACd,EAAA;AAC7C;AAE+D;AAClB,EAAA;AAC7C;ADvLoD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/eloquent/eloquent/packages/@elqnt/agents/dist/api/server.js","sourcesContent":[null,"/**\n * Server-side Agents API\n *\n * API functions for server-side usage (Server Actions, API routes, SSR).\n * Uses serverApiRequest which generates JWT tokens internally.\n *\n * @example\n * ```ts\n * // In a Next.js Server Action\n * \"use server\";\n * import { listAgentsServer, getAgentServer } from \"@elqnt/agents/api/server\";\n *\n * export async function getAgentsList(orgId: string) {\n * const response = await listAgentsServer({\n * gatewayUrl: process.env.API_GATEWAY_URL!,\n * jwtSecret: process.env.JWT_SECRET!,\n * orgId,\n * });\n * return response.data?.agents || [];\n * }\n * ```\n */\n\nimport { serverApiRequest, type ServerRequestOptions } from \"@elqnt/api-client/server\";\nimport type { ApiResponse } from \"@elqnt/api-client\";\nimport type { ResponseMetadata } from \"@elqnt/types\";\nimport type {\n Agent,\n AgentResponse,\n ListAgentsResponse,\n ListAgentsSummaryResponse,\n Skill,\n SkillResponse,\n SkillsListResponse,\n GetSkillsByIDsResponse,\n SubAgent,\n SubAgentResponse,\n SubAgentsListResponse,\n AgentWidget,\n AgentWidgetResponse,\n ListAgentWidgetsResponse,\n SkillUserConfigResponse,\n SkillUserConfigListResponse,\n ResolveSkillConfigResponse,\n ToolDefinition,\n ToolDefinitionResponse,\n ToolDefinitionsListResponse,\n GetToolDefinitionsByIDsResponse,\n AgentJob,\n AgentJobResponse,\n AgentJobsListResponse,\n} from \"../models\";\n\n// =============================================================================\n// TYPES\n// =============================================================================\n\nexport interface ServerApiOptions {\n /** API Gateway URL */\n gatewayUrl: string;\n /** JWT secret for token generation */\n jwtSecret: string;\n /** Organization ID */\n orgId: string;\n /** User ID (defaults to \"system\") */\n userId?: string;\n /** User email */\n userEmail?: string;\n /** Request timeout in ms */\n timeout?: number;\n /** Cache strategy */\n cache?: RequestCache;\n}\n\ntype RequestOpts = ServerRequestOptions & { gatewayUrl: string; jwtSecret: string };\n\nfunction buildRequestOptions(options: ServerApiOptions, method: ServerRequestOptions[\"method\"] = \"GET\", body?: unknown): RequestOpts {\n return {\n gatewayUrl: options.gatewayUrl,\n jwtSecret: options.jwtSecret,\n orgId: options.orgId,\n userId: options.userId,\n userEmail: options.userEmail,\n timeout: options.timeout,\n cache: options.cache,\n method,\n body,\n };\n}\n\n// =============================================================================\n// AGENTS\n// =============================================================================\n\nexport async function listAgentsServer(options: ServerApiOptions): Promise<ApiResponse<ListAgentsResponse>> {\n return serverApiRequest(\"/api/v1/agents\", buildRequestOptions(options, \"GET\"));\n}\n\nexport async function listAgentsSummaryServer(options: ServerApiOptions): Promise<ApiResponse<ListAgentsSummaryResponse>> {\n return serverApiRequest(\"/api/v1/agents/summary\", buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getAgentServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<AgentResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function createAgentServer(agent: Partial<Agent>, options: ServerApiOptions): Promise<ApiResponse<AgentResponse>> {\n return serverApiRequest(\"/api/v1/agents\", buildRequestOptions(options, \"POST\", { agent }));\n}\n\nexport async function updateAgentServer(agentId: string, agent: Partial<Agent>, options: ServerApiOptions): Promise<ApiResponse<AgentResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}`, buildRequestOptions(options, \"PUT\", { agent }));\n}\n\nexport async function deleteAgentServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/agents/${agentId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport async function getDefaultAgentServer(options: ServerApiOptions): Promise<ApiResponse<AgentResponse>> {\n return serverApiRequest(\"/api/v1/agents/default\", buildRequestOptions(options, \"GET\"));\n}\n\n// =============================================================================\n// SKILLS\n// =============================================================================\n\nexport async function listSkillsServer(options: ServerApiOptions): Promise<ApiResponse<SkillsListResponse>> {\n return serverApiRequest(\"/api/v1/skills\", buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getSkillServer(skillId: string, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>> {\n return serverApiRequest(`/api/v1/skills/${skillId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getSkillsByIdsServer(ids: string[], options: ServerApiOptions): Promise<ApiResponse<GetSkillsByIDsResponse>> {\n return serverApiRequest(\"/api/v1/skills/by-ids\", buildRequestOptions(options, \"POST\", { ids }));\n}\n\nexport async function createSkillServer(skill: Partial<Skill>, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>> {\n return serverApiRequest(\"/api/v1/skills\", buildRequestOptions(options, \"POST\", { skill }));\n}\n\nexport async function updateSkillServer(skillId: string, skill: Partial<Skill>, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>> {\n return serverApiRequest(`/api/v1/skills/${skillId}`, buildRequestOptions(options, \"PUT\", { skill }));\n}\n\nexport async function deleteSkillServer(skillId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/skills/${skillId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport interface SkillCategoriesResponse {\n categories: string[];\n metadata: ResponseMetadata;\n}\n\nexport async function getSkillCategoriesServer(options: ServerApiOptions): Promise<ApiResponse<SkillCategoriesResponse>> {\n return serverApiRequest(\"/api/v1/skills/categories\", buildRequestOptions(options, \"GET\"));\n}\n\n// =============================================================================\n// SKILL USER CONFIG\n// =============================================================================\n\nexport async function getSkillUserConfigServer(\n skillId: string,\n options: ServerApiOptions & { agentId?: string }\n): Promise<ApiResponse<SkillUserConfigResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n const query = params.toString();\n return serverApiRequest(`/api/v1/skills/${skillId}/user-config${query ? `?${query}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function updateSkillUserConfigServer(\n skillId: string,\n data: {\n enabled?: boolean;\n displayOrder?: number;\n config?: Record<string, unknown>;\n agentId?: string;\n },\n options: ServerApiOptions\n): Promise<ApiResponse<SkillUserConfigResponse>> {\n return serverApiRequest(`/api/v1/skills/${skillId}/user-config`, buildRequestOptions(options, \"PUT\", data));\n}\n\nexport async function deleteSkillUserConfigServer(\n skillId: string,\n options: ServerApiOptions & { agentId?: string }\n): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n const query = params.toString();\n return serverApiRequest(`/api/v1/skills/${skillId}/user-config${query ? `?${query}` : \"\"}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport async function listSkillUserConfigsServer(\n options: ServerApiOptions & { agentId?: string; limit?: number; offset?: number }\n): Promise<ApiResponse<SkillUserConfigListResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n if (options.limit) params.set(\"limit\", String(options.limit));\n if (options.offset) params.set(\"offset\", String(options.offset));\n const query = params.toString();\n return serverApiRequest(`/api/v1/skills/user-configs${query ? `?${query}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function resolveSkillConfigServer(\n skillId: string,\n agentId: string,\n options: ServerApiOptions\n): Promise<ApiResponse<ResolveSkillConfigResponse>> {\n return serverApiRequest(`/api/v1/skills/${skillId}/resolve-config?agentId=${agentId}`, buildRequestOptions(options, \"GET\"));\n}\n\n// =============================================================================\n// SUB-AGENTS\n// =============================================================================\n\nexport async function listSubAgentsServer(\n options: ServerApiOptions & { onlySystem?: boolean; enabled?: boolean }\n): Promise<ApiResponse<SubAgentsListResponse>> {\n const params = new URLSearchParams();\n if (options.onlySystem !== undefined) params.set(\"onlySystem\", String(options.onlySystem));\n if (options.enabled !== undefined) params.set(\"enabled\", String(options.enabled));\n const queryString = params.toString();\n return serverApiRequest(`/api/v1/subagents${queryString ? `?${queryString}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getSubAgentServer(subAgentId: string, options: ServerApiOptions): Promise<ApiResponse<SubAgentResponse>> {\n return serverApiRequest(`/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function createSubAgentServer(subAgent: Partial<SubAgent>, options: ServerApiOptions): Promise<ApiResponse<SubAgentResponse>> {\n return serverApiRequest(\"/api/v1/subagents\", buildRequestOptions(options, \"POST\", { subAgent }));\n}\n\nexport async function updateSubAgentServer(subAgentId: string, subAgent: Partial<SubAgent>, options: ServerApiOptions): Promise<ApiResponse<SubAgentResponse>> {\n return serverApiRequest(`/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, \"PUT\", { subAgent }));\n}\n\nexport async function deleteSubAgentServer(subAgentId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\n// =============================================================================\n// TOOL DEFINITIONS\n// =============================================================================\n\nexport async function listToolDefinitionsServer(\n options: ServerApiOptions & { onlySystem?: boolean; enabled?: boolean; limit?: number; offset?: number }\n): Promise<ApiResponse<ToolDefinitionsListResponse>> {\n const params = new URLSearchParams();\n if (options.onlySystem !== undefined) params.set(\"onlySystem\", String(options.onlySystem));\n if (options.enabled !== undefined) params.set(\"enabled\", String(options.enabled));\n if (options.limit !== undefined) params.set(\"limit\", String(options.limit));\n if (options.offset !== undefined) params.set(\"offset\", String(options.offset));\n const queryString = params.toString();\n return serverApiRequest(`/api/v1/tool-definitions${queryString ? `?${queryString}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getToolDefinitionServer(toolDefId: string, options: ServerApiOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return serverApiRequest(`/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getToolDefinitionsByIdsServer(ids: string[], options: ServerApiOptions): Promise<ApiResponse<GetToolDefinitionsByIDsResponse>> {\n return serverApiRequest(\"/api/v1/tool-definitions/by-ids\", buildRequestOptions(options, \"POST\", { ids }));\n}\n\nexport async function createToolDefinitionServer(toolDefinition: Partial<ToolDefinition>, options: ServerApiOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return serverApiRequest(\"/api/v1/tool-definitions\", buildRequestOptions(options, \"POST\", { toolDefinition }));\n}\n\nexport async function updateToolDefinitionServer(toolDefId: string, toolDefinition: Partial<ToolDefinition>, options: ServerApiOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return serverApiRequest(`/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, \"PUT\", { toolDefinition }));\n}\n\nexport async function deleteToolDefinitionServer(toolDefId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\n// =============================================================================\n// AGENT JOBS\n// =============================================================================\n\nexport async function listAgentJobsServer(\n options: ServerApiOptions & {\n agentId?: string;\n ownerId?: string;\n scope?: string;\n status?: string;\n frequency?: string;\n limit?: number;\n offset?: number;\n }\n): Promise<ApiResponse<AgentJobsListResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n if (options.ownerId) params.set(\"ownerId\", options.ownerId);\n if (options.scope) params.set(\"scope\", options.scope);\n if (options.status) params.set(\"status\", options.status);\n if (options.frequency) params.set(\"frequency\", options.frequency);\n if (options.limit !== undefined) params.set(\"limit\", String(options.limit));\n if (options.offset !== undefined) params.set(\"offset\", String(options.offset));\n const queryString = params.toString();\n return serverApiRequest(`/api/v1/agent-jobs${queryString ? `?${queryString}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function createAgentJobServer(job: Partial<AgentJob>, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(\"/api/v1/agent-jobs\", buildRequestOptions(options, \"POST\", { job }));\n}\n\nexport async function updateAgentJobServer(jobId: string, job: Partial<AgentJob>, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, \"PUT\", { job }));\n}\n\nexport async function deleteAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport async function pauseAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}/pause`, buildRequestOptions(options, \"POST\"));\n}\n\nexport async function resumeAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}/resume`, buildRequestOptions(options, \"POST\"));\n}\n\n// =============================================================================\n// WIDGETS\n// =============================================================================\n\nexport async function listWidgetsServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<ListAgentWidgetsResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}/widgets`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getDefaultWidgetServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}/widgets/default`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function createWidgetServer(agentId: string, widget: Partial<AgentWidget>, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}/widgets`, buildRequestOptions(options, \"POST\", { widget }));\n}\n\nexport async function getWidgetServer(widgetId: string, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return serverApiRequest(`/api/v1/widgets/${widgetId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function updateWidgetServer(widgetId: string, widget: Partial<AgentWidget>, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return serverApiRequest(`/api/v1/widgets/${widgetId}`, buildRequestOptions(options, \"PUT\", { widget }));\n}\n\nexport async function deleteWidgetServer(widgetId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/widgets/${widgetId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport async function setDefaultWidgetServer(widgetId: string, agentId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/widgets/${widgetId}/default`, buildRequestOptions(options, \"POST\", { agentId }));\n}\n\n// Re-export types\nexport type {\n Agent,\n AgentResponse,\n ListAgentsResponse,\n ListAgentsSummaryResponse,\n Skill,\n SkillResponse,\n SkillsListResponse,\n SubAgent,\n SubAgentResponse,\n SubAgentsListResponse,\n AgentWidget,\n AgentWidgetResponse,\n ListAgentWidgetsResponse,\n ToolDefinition,\n ToolDefinitionResponse,\n ToolDefinitionsListResponse,\n AgentJob,\n AgentJobResponse,\n AgentJobsListResponse,\n} from \"../models\";\n"]}
@@ -38,7 +38,7 @@ import {
38
38
  updateSubAgentApi,
39
39
  updateToolDefinitionApi,
40
40
  updateWidgetApi
41
- } from "./chunk-O3FM26FT.mjs";
41
+ } from "./chunk-XYJDCUUG.mjs";
42
42
 
43
43
  // hooks/index.ts
44
44
  import { useMemo } from "react";
@@ -431,4 +431,4 @@ export {
431
431
  useAgentJobs,
432
432
  useWidgets
433
433
  };
434
- //# sourceMappingURL=chunk-RTUQ7WKT.mjs.map
434
+ //# sourceMappingURL=chunk-CYOI5YBB.mjs.map
@@ -0,0 +1,20 @@
1
+ "use client";
2
+
3
+ // utils/provision.ts
4
+ function toDefaultDefinitions(provision) {
5
+ return {
6
+ agents: [provision.agent],
7
+ toolDefinitions: provision.tools ?? [],
8
+ subAgents: provision.subAgents ?? [],
9
+ skills: provision.skills ?? []
10
+ };
11
+ }
12
+ function toDefaultDefinitionsArray(provisions) {
13
+ return provisions.map(toDefaultDefinitions);
14
+ }
15
+
16
+ export {
17
+ toDefaultDefinitions,
18
+ toDefaultDefinitionsArray
19
+ };
20
+ //# sourceMappingURL=chunk-HYR7PXFU.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../utils/provision.ts"],"sourcesContent":["/**\n * Provisioning utilities for agents\n */\n\nimport type { AgentProvisionDefinition, DefaultDefinitions } from \"../models\";\n\n/**\n * Convert a single agent provision definition to DefaultDefinitions format\n * expected by the provisioning API.\n *\n * @example\n * ```typescript\n * const provision: AgentProvisionDefinition = {\n * agent: { name: \"my-agent\", ... },\n * tools: [],\n * subAgents: [],\n * skills: [],\n * };\n *\n * const definitions = toDefaultDefinitions(provision);\n * await provisionDefaultAgentsApi([definitions], options);\n * ```\n */\nexport function toDefaultDefinitions(\n provision: AgentProvisionDefinition\n): DefaultDefinitions {\n return {\n agents: [provision.agent],\n toolDefinitions: provision.tools ?? [],\n subAgents: provision.subAgents ?? [],\n skills: provision.skills ?? [],\n };\n}\n\n/**\n * Convert multiple agent provision definitions to DefaultDefinitions array\n */\nexport function toDefaultDefinitionsArray(\n provisions: AgentProvisionDefinition[]\n): DefaultDefinitions[] {\n return provisions.map(toDefaultDefinitions);\n}\n"],"mappings":";;;AAuBO,SAAS,qBACd,WACoB;AACpB,SAAO;AAAA,IACL,QAAQ,CAAC,UAAU,KAAK;AAAA,IACxB,iBAAiB,UAAU,SAAS,CAAC;AAAA,IACrC,WAAW,UAAU,aAAa,CAAC;AAAA,IACnC,QAAQ,UAAU,UAAU,CAAC;AAAA,EAC/B;AACF;AAKO,SAAS,0BACd,YACsB;AACtB,SAAO,WAAW,IAAI,oBAAoB;AAC5C;","names":[]}
@@ -488,4 +488,4 @@ export {
488
488
  ListSandboxSubject,
489
489
  DeleteSandboxSubject
490
490
  };
491
- //# sourceMappingURL=chunk-EUELXX27.mjs.map
491
+ //# sourceMappingURL=chunk-JZNPHBJD.mjs.map