@elqnt/agents 3.6.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/SKILL.md +724 -0
- package/dist/{agent-models-vL3a7oFB.d.mts → agent-models-B-wTMdwF.d.mts} +10 -1
- package/dist/{agent-models-vL3a7oFB.d.ts → agent-models-B-wTMdwF.d.ts} +10 -1
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +3 -4
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +1 -2
- package/dist/api/server.d.mts +1 -1
- package/dist/api/server.d.ts +1 -1
- package/dist/api/server.js +1 -3
- package/dist/api/server.js.map +1 -1
- package/dist/api/server.mjs +0 -2
- package/dist/api/server.mjs.map +1 -1
- package/dist/{chunk-B2FNXJRV.js → chunk-2FZZW4O4.js} +5 -5
- package/dist/chunk-2FZZW4O4.js.map +1 -0
- package/dist/{chunk-3EHE4O57.mjs → chunk-6FKG2JBT.mjs} +1 -3
- package/dist/{chunk-3EHE4O57.mjs.map → chunk-6FKG2JBT.mjs.map} +1 -1
- package/dist/{chunk-IXUXNTSL.mjs → chunk-CCQNGD3U.mjs} +3 -3
- package/dist/{chunk-IXUXNTSL.mjs.map → chunk-CCQNGD3U.mjs.map} +1 -1
- package/dist/{chunk-ZS7DRNCT.js → chunk-DQATIIAV.js} +2 -4
- package/dist/chunk-DQATIIAV.js.map +1 -0
- package/dist/{chunk-OQ6FJAI2.mjs → chunk-NHIVBTLU.mjs} +1 -3
- package/dist/{chunk-OQ6FJAI2.mjs.map → chunk-NHIVBTLU.mjs.map} +1 -1
- package/dist/{chunk-ENKX5CU7.js → chunk-QH234LAO.js} +2 -4
- package/dist/chunk-QH234LAO.js.map +1 -0
- package/dist/{chunk-2JDVRL35.js → chunk-QXMZEZRM.js} +2 -4
- package/dist/chunk-QXMZEZRM.js.map +1 -0
- package/dist/{chunk-HYR7PXFU.mjs → chunk-YQFBZW6F.mjs} +1 -3
- package/dist/{chunk-HYR7PXFU.mjs.map → chunk-YQFBZW6F.mjs.map} +1 -1
- package/dist/hooks/index.d.mts +354 -142
- package/dist/hooks/index.d.ts +354 -142
- package/dist/hooks/index.js +1094 -6
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1107 -19
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +5 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -38
- package/dist/models/index.d.mts +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +4 -3
- package/dist/models/index.js.map +1 -1
- package/dist/models/index.mjs +3 -2
- package/dist/transport/index.d.mts +3 -3
- package/dist/transport/index.d.ts +3 -3
- package/dist/transport/index.js +3 -4
- package/dist/transport/index.js.map +1 -1
- package/dist/transport/index.mjs +1 -2
- package/dist/{types-CuOOCeF8.d.ts → types-BzNzXaqk.d.ts} +2 -2
- package/dist/{types-Bv7_AOrZ.d.mts → types-CSyY6Qv7.d.mts} +2 -2
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +3 -4
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +1 -2
- package/package.json +8 -7
- package/dist/chunk-2JDVRL35.js.map +0 -1
- package/dist/chunk-B2FNXJRV.js.map +0 -1
- package/dist/chunk-ENKX5CU7.js.map +0 -1
- package/dist/chunk-G2T3H3V4.js +0 -1114
- package/dist/chunk-G2T3H3V4.js.map +0 -1
- package/dist/chunk-WYNGW5GI.mjs +0 -1114
- package/dist/chunk-WYNGW5GI.mjs.map +0 -1
- package/dist/chunk-ZS7DRNCT.js.map +0 -1
|
@@ -2199,6 +2199,15 @@ declare const AgentJobTriggerSubject = "agents.job.trigger";
|
|
|
2199
2199
|
* (the task itself is the recurring definition; see task_schedule_handler.go).
|
|
2200
2200
|
*/
|
|
2201
2201
|
declare const AgentTaskTriggerSubject = "agents.task.trigger";
|
|
2202
|
+
/**
|
|
2203
|
+
* Todo Schedule Trigger (from Scheduler Service) — drives scheduled and
|
|
2204
|
+
* recurring Todo items. Each tick fans out across orgs, finds todo_item
|
|
2205
|
+
* records whose schedule is due (schedule.nextRunAt <= now), and either
|
|
2206
|
+
* fires a reminder to the owner (reminder-only todos) or dispatches a
|
|
2207
|
+
* one-time agent run that does the work then notifies the owner
|
|
2208
|
+
* (agent-task todos). See todo_schedule_handler.go.
|
|
2209
|
+
*/
|
|
2210
|
+
declare const AgentTodoTriggerSubject = "agents.todo.trigger";
|
|
2202
2211
|
/**
|
|
2203
2212
|
* Background Agent Tool Subjects (from chat agent tool calls)
|
|
2204
2213
|
*/
|
|
@@ -2587,4 +2596,4 @@ interface PublicWidgetConfig {
|
|
|
2587
2596
|
behavior: WidgetBehavior;
|
|
2588
2597
|
}
|
|
2589
2598
|
|
|
2590
|
-
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, AgentVersionListSubject 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, type AgentStatusTS as aA, type AgentStatusUpdate as aB, type AgentSubType as aC, AgentSubTypeChat as aD, AgentSubTypeDocument as aE, AgentSubTypeReact as aF, type AgentSubTypeTS as aG, AgentSubTypeWorkflow as aH, type AgentSummary as aI, AgentTaskTriggerSubject as aJ, type AgentTemplate as aK, AgentTemplateGetSubject as aL, AgentTemplateListSubject as aM, type AgentTool as aN, type AgentToolConfiguration as aO, type AgentType as aP, AgentTypeChat as aQ, AgentTypeReact as aR, type AgentTypeTS as aS, AgentUpdateOrgSubject as aT, AgentUpdateSubject as aU, AgentUpdatedSubject as aV, AgentVersionActivateSubject as aW, AgentVersionActivatedSubject as aX, AgentVersionCreateSubject as aY, AgentVersionCreatedSubject as aZ, AgentVersionGetSubject 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, AgentScopeCustom as ak, AgentScopeOrg as al, type AgentScopeTS as am, AgentScopeTeam as an, AgentScopeUser as ao, AgentSearchSubject as ap, type AgentSkill as aq, type AgentSkillConfigResponse as ar, AgentSkillGetConfigSubject as as, type AgentSkillTool as at, AgentSkillUpdateConfigSubject as au, type AgentStatus as av, AgentStatusActive as aw, AgentStatusArchived as ax, AgentStatusDraft as ay, AgentStatusInactive as az, AgentCategoryDevelopment as b, type GetDefaultAgentRequest as b$, type AgentWidget as b0, type AgentWidgetResponse as b1, AgentWidgetsCreateSubject as b2, AgentWidgetsDeleteSubject as b3, AgentWidgetsGetByWidgetID as b4, AgentWidgetsGetDefaultSubject as b5, AgentWidgetsGetSubject as b6, AgentWidgetsListSubject as b7, AgentWidgetsSetDefaultSubject as b8, AgentWidgetsUpdateSubject as b9, type DeleteSubAgentRequest as bA, type DeleteToolDefinitionRequest as bB, type ExecuteJobRequest as bC, type ExecutePlanRequest as bD, type ExecutePlanResponse as bE, type ExecuteToolRequest as bF, type ExecuteToolResponse as bG, type ExecutionCompletedEvent as bH, type ExecutionMode as bI, ExecutionModeAsync as bJ, ExecutionModeAsyncClient as bK, ExecutionModeSync as bL, type ExecutionModeTS as bM, type ExecutionPlan as bN, type ExecutionResponse as bO, type ExecutionStatus as bP, ExecutionStatusCompleted as bQ, ExecutionStatusFailed as bR, ExecutionStatusPending as bS, ExecutionStatusRunning as bT, ExecutionStatusSkipped as bU, type ExecutionStatusTS as bV, ExecutionTTLHours as bW, ExecutionsTTLCleanupSubject as bX, type GetAgentRequest as bY, type GetAgentSkillConfigRequest as bZ, type GetAgentWidgetRequest as b_, type ArtifactRef as ba, type BackgroundAgentProgressEvent as bb, type BackgroundAgentStatusRequest as bc, type BackgroundAgentStatusResponse as bd, type CSATAnswer as be, type CSATConfig as bf, type CSATQuestion as bg, type CSATResponse as bh, type CSATSurvey as bi, ChatAgentExecuteSubject as bj, ChatAgentStatusSubject as bk, CheckBackgroundAgentStatusToolSubject as bl, type CreateAgentJobRequest as bm, type CreateAgentRequest as bn, type CreateAgentWidgetRequest as bo, type CreateExecutionPlanRequest as bp, type CreateExecutionPlanResponse as bq, type CreateSkillRequest as br, type CreateSubAgentRequest as bs, type CreateToolDefinitionRequest as bt, type CustomizableField as bu, type DefaultDefinitions as bv, type DeleteAgentRequest as bw, type DeleteAgentWidgetRequest as bx, type DeleteSkillRequest as by, type DeleteSkillUserConfigRequest as bz, AgentCategoryFinance as c, type MergeStrategyTS as c$, type GetDefaultWidgetRequest as c0, type GetExecutionRequest as c1, type GetSkillRequest as c2, type GetSkillUserConfigRequest as c3, type GetSkillsByIDsRequest as c4, type GetSkillsByIDsResponse as c5, type GetSubAgentRequest as c6, type GetSubAgentsByIDsRequest as c7, type GetSubAgentsByIDsResponse as c8, type GetToolDefinitionRequest as c9, type JobStatus as cA, JobStatusActive as cB, JobStatusDisabled as cC, JobStatusExecuting as cD, JobStatusPaused as cE, type JobStatusTS as cF, type ListAgentJobsRequest as cG, type ListAgentWidgetsRequest as cH, type ListAgentWidgetsResponse as cI, type ListAgentsRequest as cJ, type ListAgentsResponse as cK, type ListAgentsSummaryRequest as cL, type ListAgentsSummaryResponse as cM, type ListExecutionsByAgentRequest as cN, type ListExecutionsByJobRequest as cO, type ListExecutionsResponse as cP, type ListSkillUserConfigRequest as cQ, type ListSkillsRequest as cR, type ListSubAgentsRequest as cS, type ListToolDefinitionsRequest as cT, type MCPServerConfig as cU, MaxExecutions as cV, type MergeConfig as cW, type MergeStrategy as cX, MergeStrategyAppend as cY, MergeStrategyMerge as cZ, MergeStrategyReplace as c_, type GetToolDefinitionsByIDsRequest as ca, type GetToolDefinitionsByIDsResponse as cb, type GetWidgetByWidgetIDRequest as cc, type GetWidgetConfigRequest as cd, type GetWidgetConfigResponse as ce, type HandoffConfig as cf, type IntegrationRequirement as cg, type JobExecution as ch, JobExecutionGetSubject as ci, JobExecutionListSubject as cj, type JobExecutionResult as ck, type JobExecutionStatus as cl, JobExecutionStatusFailed as cm, JobExecutionStatusRunning as cn, JobExecutionStatusSuccess as co, type JobExecutionStatusTS as cp, JobExecutionStatusTimedOut as cq, type JobFrequency as cr, JobFrequencyOneTime as cs, JobFrequencySchedule as ct, type JobFrequencyTS as cu, type JobScope as cv, JobScopeOrg as cw, JobScopePrivate as cx, type JobScopeTS as cy, JobScopeTeam as cz, AgentCategoryGeneral as d, SubAgentsDeletedSubject as d$, type PlanApprovalConfig as d0, type PlanStatus as d1, PlanStatusApproved as d2, PlanStatusCancelled as d3, PlanStatusCompleted as d4, PlanStatusExecuting as d5, PlanStatusPendingApproval as d6, PlanStatusRejected as d7, type PlanStatusTS as d8, type PlannedStep as d9, SkillCategoryProductivity as dA, type SkillCategoryTS as dB, SkillResolveConfigSubject as dC, type SkillResponse as dD, type SkillUserConfig as dE, SkillUserConfigDeleteSubject as dF, SkillUserConfigGetSubject as dG, type SkillUserConfigListResponse as dH, SkillUserConfigListSubject as dI, type SkillUserConfigResponse as dJ, SkillUserConfigUpdateSubject as dK, SkillsCreateSubject as dL, SkillsCreatedSubject as dM, SkillsDeleteSubject as dN, SkillsDeletedSubject as dO, SkillsGetByIDsSubject as dP, SkillsGetSubject as dQ, type SkillsListResponse as dR, SkillsListSubject as dS, SkillsUpdateOrgConfigSubject as dT, SkillsUpdateSubject as dU, SkillsUpdatedSubject as dV, type SubAgent as dW, type SubAgentResponse as dX, SubAgentsCreateSubject as dY, SubAgentsCreatedSubject as dZ, SubAgentsDeleteSubject as d_, type ProcessJobTriggerResult as da, type PublicWidgetConfig as db, type PublisherType as dc, PublisherTypeEloquent as dd, PublisherTypePartner as de, type PublisherTypeTS as df, type ReactAgentConfig as dg, ReactAgentExecuteSubject as dh, ReactAgentStatusSubject as di, ReactAgentStopSubject as dj, type ResolveSkillConfigRequest as dk, type ResolveSkillConfigResponse as dl, type RetryPolicy as dm, RuntimeJobCompletedSubject as dn, RuntimeJobExecuteSubject as dp, type SaveWidgetConfigRequest as dq, type SaveWidgetConfigResponse as dr, type SetDefaultWidgetRequest as ds, type Skill as dt, type SkillCategory as du, SkillCategoryAnalysis as dv, SkillCategoryCommunication as dw, SkillCategoryCreative as dx, SkillCategoryCustom as dy, SkillCategoryIntegration as dz, AgentCategoryHR as e, type WidgetAppearance as e$, SubAgentsExecuteSubject as e0, SubAgentsGetByIDsSubject as e1, SubAgentsGetSubject as e2, type SubAgentsListResponse as e3, SubAgentsListSubject as e4, SubAgentsUpdateSubject as e5, SubAgentsUpdatedSubject as e6, SubAgentsValidateSubject as e7, type TTLCleanupRequest as e8, type TTLCleanupResponse as e9, ToolExecutionStatusCompleted as eA, ToolExecutionStatusExecuting as eB, ToolExecutionStatusFailed as eC, ToolExecutionStatusSkipped as eD, ToolExecutionStatusStarted as eE, type ToolExecutionStatusTS as eF, ToolExecutionStatusTimeout as eG, type TriggerBackgroundAgentRequest as eH, type TriggerBackgroundAgentResponse as eI, TriggerBackgroundAgentToolSubject as eJ, type UpdateAgentJobRequest as eK, type UpdateAgentRequest as eL, type UpdateAgentSkillConfigRequest as eM, type UpdateAgentWidgetRequest as eN, type UpdateOrgAgentsRequest as eO, type UpdateOrgAgentsResponse as eP, type UpdateSkillOrgConfigRequest as eQ, type UpdateSkillRequest as eR, type UpdateSkillUserConfigRequest as eS, type UpdateSubAgentRequest as eT, type UpdateToolDefinitionRequest as eU, type UserSuggestedAction as eV, type UserSuggestedActionsConfig as eW, type UserSuggestedActionsRequest as eX, type UserSuggestedActionsResponse as eY, type ValidationError as eZ, type ValidationErrors as e_, type TaskStatusTS as ea, type TemplateCategoryCount as eb, type TemplateFilters as ec, type TemplateStatus as ed, TemplateStatusDraft as ee, TemplateStatusPublished as ef, type TemplateStatusTS as eg, type ToolConfig as eh, type ToolDefinition as ei, type ToolDefinitionResponse as ej, ToolDefinitionsCreateSubject as ek, ToolDefinitionsCreatedSubject as el, ToolDefinitionsDeleteSubject as em, ToolDefinitionsDeletedSubject as en, ToolDefinitionsExecuteSubject as eo, ToolDefinitionsGetByIDsSubject as ep, ToolDefinitionsGetSubject as eq, type ToolDefinitionsListResponse as er, ToolDefinitionsListSubject as es, ToolDefinitionsUpdateSubject as et, ToolDefinitionsUpdatedSubject as eu, ToolDefinitionsValidateSubject as ev, type ToolExecution as ew, type ToolExecutionPolicy as ex, type ToolExecutionProgress as ey, type ToolExecutionStatus as ez, AgentCategoryMarketing as f, type WidgetBehavior as f0, type WidgetConfig as f1, WidgetConfigGetByAgentSubject as f2, WidgetConfigSaveSubject as f3, type WidgetSecurity as f4, WorkflowAgentGetSubject as f5, WorkflowAgentUpdateSubject as f6, 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 };
|
|
2599
|
+
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, AgentVersionGetSubject 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, type AgentStatusTS as aA, type AgentStatusUpdate as aB, type AgentSubType as aC, AgentSubTypeChat as aD, AgentSubTypeDocument as aE, AgentSubTypeReact as aF, type AgentSubTypeTS as aG, AgentSubTypeWorkflow as aH, type AgentSummary as aI, AgentTaskTriggerSubject as aJ, type AgentTemplate as aK, AgentTemplateGetSubject as aL, AgentTemplateListSubject as aM, AgentTodoTriggerSubject as aN, type AgentTool as aO, type AgentToolConfiguration as aP, type AgentType as aQ, AgentTypeChat as aR, AgentTypeReact as aS, type AgentTypeTS as aT, AgentUpdateOrgSubject as aU, AgentUpdateSubject as aV, AgentUpdatedSubject as aW, AgentVersionActivateSubject as aX, AgentVersionActivatedSubject as aY, AgentVersionCreateSubject as aZ, AgentVersionCreatedSubject 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, AgentScopeCustom as ak, AgentScopeOrg as al, type AgentScopeTS as am, AgentScopeTeam as an, AgentScopeUser as ao, AgentSearchSubject as ap, type AgentSkill as aq, type AgentSkillConfigResponse as ar, AgentSkillGetConfigSubject as as, type AgentSkillTool as at, AgentSkillUpdateConfigSubject as au, type AgentStatus as av, AgentStatusActive as aw, AgentStatusArchived as ax, AgentStatusDraft as ay, AgentStatusInactive as az, AgentCategoryDevelopment as b, type GetAgentWidgetRequest as b$, AgentVersionListSubject as b0, type AgentWidget as b1, type AgentWidgetResponse as b2, AgentWidgetsCreateSubject as b3, AgentWidgetsDeleteSubject as b4, AgentWidgetsGetByWidgetID as b5, AgentWidgetsGetDefaultSubject as b6, AgentWidgetsGetSubject as b7, AgentWidgetsListSubject as b8, AgentWidgetsSetDefaultSubject as b9, type DeleteSkillUserConfigRequest as bA, type DeleteSubAgentRequest as bB, type DeleteToolDefinitionRequest as bC, type ExecuteJobRequest as bD, type ExecutePlanRequest as bE, type ExecutePlanResponse as bF, type ExecuteToolRequest as bG, type ExecuteToolResponse as bH, type ExecutionCompletedEvent as bI, type ExecutionMode as bJ, ExecutionModeAsync as bK, ExecutionModeAsyncClient as bL, ExecutionModeSync as bM, type ExecutionModeTS as bN, type ExecutionPlan as bO, type ExecutionResponse as bP, type ExecutionStatus as bQ, ExecutionStatusCompleted as bR, ExecutionStatusFailed as bS, ExecutionStatusPending as bT, ExecutionStatusRunning as bU, ExecutionStatusSkipped as bV, type ExecutionStatusTS as bW, ExecutionTTLHours as bX, ExecutionsTTLCleanupSubject as bY, type GetAgentRequest as bZ, type GetAgentSkillConfigRequest as b_, AgentWidgetsUpdateSubject as ba, type ArtifactRef as bb, type BackgroundAgentProgressEvent as bc, type BackgroundAgentStatusRequest as bd, type BackgroundAgentStatusResponse as be, type CSATAnswer as bf, type CSATConfig as bg, type CSATQuestion as bh, type CSATResponse as bi, type CSATSurvey as bj, ChatAgentExecuteSubject as bk, ChatAgentStatusSubject as bl, CheckBackgroundAgentStatusToolSubject as bm, type CreateAgentJobRequest as bn, type CreateAgentRequest as bo, type CreateAgentWidgetRequest as bp, type CreateExecutionPlanRequest as bq, type CreateExecutionPlanResponse as br, type CreateSkillRequest as bs, type CreateSubAgentRequest as bt, type CreateToolDefinitionRequest as bu, type CustomizableField as bv, type DefaultDefinitions as bw, type DeleteAgentRequest as bx, type DeleteAgentWidgetRequest as by, type DeleteSkillRequest as bz, AgentCategoryFinance as c, MergeStrategyReplace as c$, type GetDefaultAgentRequest as c0, type GetDefaultWidgetRequest as c1, type GetExecutionRequest as c2, type GetSkillRequest as c3, type GetSkillUserConfigRequest as c4, type GetSkillsByIDsRequest as c5, type GetSkillsByIDsResponse as c6, type GetSubAgentRequest as c7, type GetSubAgentsByIDsRequest as c8, type GetSubAgentsByIDsResponse as c9, JobScopeTeam as cA, type JobStatus as cB, JobStatusActive as cC, JobStatusDisabled as cD, JobStatusExecuting as cE, JobStatusPaused as cF, type JobStatusTS as cG, type ListAgentJobsRequest as cH, type ListAgentWidgetsRequest as cI, type ListAgentWidgetsResponse as cJ, type ListAgentsRequest as cK, type ListAgentsResponse as cL, type ListAgentsSummaryRequest as cM, type ListAgentsSummaryResponse as cN, type ListExecutionsByAgentRequest as cO, type ListExecutionsByJobRequest as cP, type ListExecutionsResponse as cQ, type ListSkillUserConfigRequest as cR, type ListSkillsRequest as cS, type ListSubAgentsRequest as cT, type ListToolDefinitionsRequest as cU, type MCPServerConfig as cV, MaxExecutions as cW, type MergeConfig as cX, type MergeStrategy as cY, MergeStrategyAppend as cZ, MergeStrategyMerge as c_, type GetToolDefinitionRequest as ca, type GetToolDefinitionsByIDsRequest as cb, type GetToolDefinitionsByIDsResponse as cc, type GetWidgetByWidgetIDRequest as cd, type GetWidgetConfigRequest as ce, type GetWidgetConfigResponse as cf, type HandoffConfig as cg, type IntegrationRequirement as ch, type JobExecution as ci, JobExecutionGetSubject as cj, JobExecutionListSubject as ck, type JobExecutionResult as cl, type JobExecutionStatus as cm, JobExecutionStatusFailed as cn, JobExecutionStatusRunning as co, JobExecutionStatusSuccess as cp, type JobExecutionStatusTS as cq, JobExecutionStatusTimedOut as cr, type JobFrequency as cs, JobFrequencyOneTime as ct, JobFrequencySchedule as cu, type JobFrequencyTS as cv, type JobScope as cw, JobScopeOrg as cx, JobScopePrivate as cy, type JobScopeTS as cz, AgentCategoryGeneral as d, SubAgentsDeleteSubject as d$, type MergeStrategyTS as d0, type PlanApprovalConfig as d1, type PlanStatus as d2, PlanStatusApproved as d3, PlanStatusCancelled as d4, PlanStatusCompleted as d5, PlanStatusExecuting as d6, PlanStatusPendingApproval as d7, PlanStatusRejected as d8, type PlanStatusTS as d9, SkillCategoryIntegration as dA, SkillCategoryProductivity as dB, type SkillCategoryTS as dC, SkillResolveConfigSubject as dD, type SkillResponse as dE, type SkillUserConfig as dF, SkillUserConfigDeleteSubject as dG, SkillUserConfigGetSubject as dH, type SkillUserConfigListResponse as dI, SkillUserConfigListSubject as dJ, type SkillUserConfigResponse as dK, SkillUserConfigUpdateSubject as dL, SkillsCreateSubject as dM, SkillsCreatedSubject as dN, SkillsDeleteSubject as dO, SkillsDeletedSubject as dP, SkillsGetByIDsSubject as dQ, SkillsGetSubject as dR, type SkillsListResponse as dS, SkillsListSubject as dT, SkillsUpdateOrgConfigSubject as dU, SkillsUpdateSubject as dV, SkillsUpdatedSubject as dW, type SubAgent as dX, type SubAgentResponse as dY, SubAgentsCreateSubject as dZ, SubAgentsCreatedSubject as d_, type PlannedStep as da, type ProcessJobTriggerResult as db, type PublicWidgetConfig as dc, type PublisherType as dd, PublisherTypeEloquent as de, PublisherTypePartner as df, type PublisherTypeTS as dg, type ReactAgentConfig as dh, ReactAgentExecuteSubject as di, ReactAgentStatusSubject as dj, ReactAgentStopSubject as dk, type ResolveSkillConfigRequest as dl, type ResolveSkillConfigResponse as dm, type RetryPolicy as dn, RuntimeJobCompletedSubject as dp, RuntimeJobExecuteSubject as dq, type SaveWidgetConfigRequest as dr, type SaveWidgetConfigResponse as ds, type SetDefaultWidgetRequest as dt, type Skill as du, type SkillCategory as dv, SkillCategoryAnalysis as dw, SkillCategoryCommunication as dx, SkillCategoryCreative as dy, SkillCategoryCustom as dz, AgentCategoryHR as e, type ValidationErrors as e$, SubAgentsDeletedSubject as e0, SubAgentsExecuteSubject as e1, SubAgentsGetByIDsSubject as e2, SubAgentsGetSubject as e3, type SubAgentsListResponse as e4, SubAgentsListSubject as e5, SubAgentsUpdateSubject as e6, SubAgentsUpdatedSubject as e7, SubAgentsValidateSubject as e8, type TTLCleanupRequest as e9, type ToolExecutionStatus as eA, ToolExecutionStatusCompleted as eB, ToolExecutionStatusExecuting as eC, ToolExecutionStatusFailed as eD, ToolExecutionStatusSkipped as eE, ToolExecutionStatusStarted as eF, type ToolExecutionStatusTS as eG, ToolExecutionStatusTimeout as eH, type TriggerBackgroundAgentRequest as eI, type TriggerBackgroundAgentResponse as eJ, TriggerBackgroundAgentToolSubject as eK, type UpdateAgentJobRequest as eL, type UpdateAgentRequest as eM, type UpdateAgentSkillConfigRequest as eN, type UpdateAgentWidgetRequest as eO, type UpdateOrgAgentsRequest as eP, type UpdateOrgAgentsResponse as eQ, type UpdateSkillOrgConfigRequest as eR, type UpdateSkillRequest as eS, type UpdateSkillUserConfigRequest as eT, type UpdateSubAgentRequest as eU, type UpdateToolDefinitionRequest as eV, type UserSuggestedAction as eW, type UserSuggestedActionsConfig as eX, type UserSuggestedActionsRequest as eY, type UserSuggestedActionsResponse as eZ, type ValidationError as e_, type TTLCleanupResponse as ea, type TaskStatusTS as eb, type TemplateCategoryCount as ec, type TemplateFilters as ed, type TemplateStatus as ee, TemplateStatusDraft as ef, TemplateStatusPublished as eg, type TemplateStatusTS as eh, type ToolConfig as ei, type ToolDefinition as ej, type ToolDefinitionResponse as ek, ToolDefinitionsCreateSubject as el, ToolDefinitionsCreatedSubject as em, ToolDefinitionsDeleteSubject as en, ToolDefinitionsDeletedSubject as eo, ToolDefinitionsExecuteSubject as ep, ToolDefinitionsGetByIDsSubject as eq, ToolDefinitionsGetSubject as er, type ToolDefinitionsListResponse as es, ToolDefinitionsListSubject as et, ToolDefinitionsUpdateSubject as eu, ToolDefinitionsUpdatedSubject as ev, ToolDefinitionsValidateSubject as ew, type ToolExecution as ex, type ToolExecutionPolicy as ey, type ToolExecutionProgress as ez, AgentCategoryMarketing as f, type WidgetAppearance as f0, type WidgetBehavior as f1, type WidgetConfig as f2, WidgetConfigGetByAgentSubject as f3, WidgetConfigSaveSubject as f4, type WidgetSecurity as f5, WorkflowAgentGetSubject as f6, WorkflowAgentUpdateSubject as f7, 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 };
|
|
@@ -2199,6 +2199,15 @@ declare const AgentJobTriggerSubject = "agents.job.trigger";
|
|
|
2199
2199
|
* (the task itself is the recurring definition; see task_schedule_handler.go).
|
|
2200
2200
|
*/
|
|
2201
2201
|
declare const AgentTaskTriggerSubject = "agents.task.trigger";
|
|
2202
|
+
/**
|
|
2203
|
+
* Todo Schedule Trigger (from Scheduler Service) — drives scheduled and
|
|
2204
|
+
* recurring Todo items. Each tick fans out across orgs, finds todo_item
|
|
2205
|
+
* records whose schedule is due (schedule.nextRunAt <= now), and either
|
|
2206
|
+
* fires a reminder to the owner (reminder-only todos) or dispatches a
|
|
2207
|
+
* one-time agent run that does the work then notifies the owner
|
|
2208
|
+
* (agent-task todos). See todo_schedule_handler.go.
|
|
2209
|
+
*/
|
|
2210
|
+
declare const AgentTodoTriggerSubject = "agents.todo.trigger";
|
|
2202
2211
|
/**
|
|
2203
2212
|
* Background Agent Tool Subjects (from chat agent tool calls)
|
|
2204
2213
|
*/
|
|
@@ -2587,4 +2596,4 @@ interface PublicWidgetConfig {
|
|
|
2587
2596
|
behavior: WidgetBehavior;
|
|
2588
2597
|
}
|
|
2589
2598
|
|
|
2590
|
-
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, AgentVersionListSubject 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, type AgentStatusTS as aA, type AgentStatusUpdate as aB, type AgentSubType as aC, AgentSubTypeChat as aD, AgentSubTypeDocument as aE, AgentSubTypeReact as aF, type AgentSubTypeTS as aG, AgentSubTypeWorkflow as aH, type AgentSummary as aI, AgentTaskTriggerSubject as aJ, type AgentTemplate as aK, AgentTemplateGetSubject as aL, AgentTemplateListSubject as aM, type AgentTool as aN, type AgentToolConfiguration as aO, type AgentType as aP, AgentTypeChat as aQ, AgentTypeReact as aR, type AgentTypeTS as aS, AgentUpdateOrgSubject as aT, AgentUpdateSubject as aU, AgentUpdatedSubject as aV, AgentVersionActivateSubject as aW, AgentVersionActivatedSubject as aX, AgentVersionCreateSubject as aY, AgentVersionCreatedSubject as aZ, AgentVersionGetSubject 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, AgentScopeCustom as ak, AgentScopeOrg as al, type AgentScopeTS as am, AgentScopeTeam as an, AgentScopeUser as ao, AgentSearchSubject as ap, type AgentSkill as aq, type AgentSkillConfigResponse as ar, AgentSkillGetConfigSubject as as, type AgentSkillTool as at, AgentSkillUpdateConfigSubject as au, type AgentStatus as av, AgentStatusActive as aw, AgentStatusArchived as ax, AgentStatusDraft as ay, AgentStatusInactive as az, AgentCategoryDevelopment as b, type GetDefaultAgentRequest as b$, type AgentWidget as b0, type AgentWidgetResponse as b1, AgentWidgetsCreateSubject as b2, AgentWidgetsDeleteSubject as b3, AgentWidgetsGetByWidgetID as b4, AgentWidgetsGetDefaultSubject as b5, AgentWidgetsGetSubject as b6, AgentWidgetsListSubject as b7, AgentWidgetsSetDefaultSubject as b8, AgentWidgetsUpdateSubject as b9, type DeleteSubAgentRequest as bA, type DeleteToolDefinitionRequest as bB, type ExecuteJobRequest as bC, type ExecutePlanRequest as bD, type ExecutePlanResponse as bE, type ExecuteToolRequest as bF, type ExecuteToolResponse as bG, type ExecutionCompletedEvent as bH, type ExecutionMode as bI, ExecutionModeAsync as bJ, ExecutionModeAsyncClient as bK, ExecutionModeSync as bL, type ExecutionModeTS as bM, type ExecutionPlan as bN, type ExecutionResponse as bO, type ExecutionStatus as bP, ExecutionStatusCompleted as bQ, ExecutionStatusFailed as bR, ExecutionStatusPending as bS, ExecutionStatusRunning as bT, ExecutionStatusSkipped as bU, type ExecutionStatusTS as bV, ExecutionTTLHours as bW, ExecutionsTTLCleanupSubject as bX, type GetAgentRequest as bY, type GetAgentSkillConfigRequest as bZ, type GetAgentWidgetRequest as b_, type ArtifactRef as ba, type BackgroundAgentProgressEvent as bb, type BackgroundAgentStatusRequest as bc, type BackgroundAgentStatusResponse as bd, type CSATAnswer as be, type CSATConfig as bf, type CSATQuestion as bg, type CSATResponse as bh, type CSATSurvey as bi, ChatAgentExecuteSubject as bj, ChatAgentStatusSubject as bk, CheckBackgroundAgentStatusToolSubject as bl, type CreateAgentJobRequest as bm, type CreateAgentRequest as bn, type CreateAgentWidgetRequest as bo, type CreateExecutionPlanRequest as bp, type CreateExecutionPlanResponse as bq, type CreateSkillRequest as br, type CreateSubAgentRequest as bs, type CreateToolDefinitionRequest as bt, type CustomizableField as bu, type DefaultDefinitions as bv, type DeleteAgentRequest as bw, type DeleteAgentWidgetRequest as bx, type DeleteSkillRequest as by, type DeleteSkillUserConfigRequest as bz, AgentCategoryFinance as c, type MergeStrategyTS as c$, type GetDefaultWidgetRequest as c0, type GetExecutionRequest as c1, type GetSkillRequest as c2, type GetSkillUserConfigRequest as c3, type GetSkillsByIDsRequest as c4, type GetSkillsByIDsResponse as c5, type GetSubAgentRequest as c6, type GetSubAgentsByIDsRequest as c7, type GetSubAgentsByIDsResponse as c8, type GetToolDefinitionRequest as c9, type JobStatus as cA, JobStatusActive as cB, JobStatusDisabled as cC, JobStatusExecuting as cD, JobStatusPaused as cE, type JobStatusTS as cF, type ListAgentJobsRequest as cG, type ListAgentWidgetsRequest as cH, type ListAgentWidgetsResponse as cI, type ListAgentsRequest as cJ, type ListAgentsResponse as cK, type ListAgentsSummaryRequest as cL, type ListAgentsSummaryResponse as cM, type ListExecutionsByAgentRequest as cN, type ListExecutionsByJobRequest as cO, type ListExecutionsResponse as cP, type ListSkillUserConfigRequest as cQ, type ListSkillsRequest as cR, type ListSubAgentsRequest as cS, type ListToolDefinitionsRequest as cT, type MCPServerConfig as cU, MaxExecutions as cV, type MergeConfig as cW, type MergeStrategy as cX, MergeStrategyAppend as cY, MergeStrategyMerge as cZ, MergeStrategyReplace as c_, type GetToolDefinitionsByIDsRequest as ca, type GetToolDefinitionsByIDsResponse as cb, type GetWidgetByWidgetIDRequest as cc, type GetWidgetConfigRequest as cd, type GetWidgetConfigResponse as ce, type HandoffConfig as cf, type IntegrationRequirement as cg, type JobExecution as ch, JobExecutionGetSubject as ci, JobExecutionListSubject as cj, type JobExecutionResult as ck, type JobExecutionStatus as cl, JobExecutionStatusFailed as cm, JobExecutionStatusRunning as cn, JobExecutionStatusSuccess as co, type JobExecutionStatusTS as cp, JobExecutionStatusTimedOut as cq, type JobFrequency as cr, JobFrequencyOneTime as cs, JobFrequencySchedule as ct, type JobFrequencyTS as cu, type JobScope as cv, JobScopeOrg as cw, JobScopePrivate as cx, type JobScopeTS as cy, JobScopeTeam as cz, AgentCategoryGeneral as d, SubAgentsDeletedSubject as d$, type PlanApprovalConfig as d0, type PlanStatus as d1, PlanStatusApproved as d2, PlanStatusCancelled as d3, PlanStatusCompleted as d4, PlanStatusExecuting as d5, PlanStatusPendingApproval as d6, PlanStatusRejected as d7, type PlanStatusTS as d8, type PlannedStep as d9, SkillCategoryProductivity as dA, type SkillCategoryTS as dB, SkillResolveConfigSubject as dC, type SkillResponse as dD, type SkillUserConfig as dE, SkillUserConfigDeleteSubject as dF, SkillUserConfigGetSubject as dG, type SkillUserConfigListResponse as dH, SkillUserConfigListSubject as dI, type SkillUserConfigResponse as dJ, SkillUserConfigUpdateSubject as dK, SkillsCreateSubject as dL, SkillsCreatedSubject as dM, SkillsDeleteSubject as dN, SkillsDeletedSubject as dO, SkillsGetByIDsSubject as dP, SkillsGetSubject as dQ, type SkillsListResponse as dR, SkillsListSubject as dS, SkillsUpdateOrgConfigSubject as dT, SkillsUpdateSubject as dU, SkillsUpdatedSubject as dV, type SubAgent as dW, type SubAgentResponse as dX, SubAgentsCreateSubject as dY, SubAgentsCreatedSubject as dZ, SubAgentsDeleteSubject as d_, type ProcessJobTriggerResult as da, type PublicWidgetConfig as db, type PublisherType as dc, PublisherTypeEloquent as dd, PublisherTypePartner as de, type PublisherTypeTS as df, type ReactAgentConfig as dg, ReactAgentExecuteSubject as dh, ReactAgentStatusSubject as di, ReactAgentStopSubject as dj, type ResolveSkillConfigRequest as dk, type ResolveSkillConfigResponse as dl, type RetryPolicy as dm, RuntimeJobCompletedSubject as dn, RuntimeJobExecuteSubject as dp, type SaveWidgetConfigRequest as dq, type SaveWidgetConfigResponse as dr, type SetDefaultWidgetRequest as ds, type Skill as dt, type SkillCategory as du, SkillCategoryAnalysis as dv, SkillCategoryCommunication as dw, SkillCategoryCreative as dx, SkillCategoryCustom as dy, SkillCategoryIntegration as dz, AgentCategoryHR as e, type WidgetAppearance as e$, SubAgentsExecuteSubject as e0, SubAgentsGetByIDsSubject as e1, SubAgentsGetSubject as e2, type SubAgentsListResponse as e3, SubAgentsListSubject as e4, SubAgentsUpdateSubject as e5, SubAgentsUpdatedSubject as e6, SubAgentsValidateSubject as e7, type TTLCleanupRequest as e8, type TTLCleanupResponse as e9, ToolExecutionStatusCompleted as eA, ToolExecutionStatusExecuting as eB, ToolExecutionStatusFailed as eC, ToolExecutionStatusSkipped as eD, ToolExecutionStatusStarted as eE, type ToolExecutionStatusTS as eF, ToolExecutionStatusTimeout as eG, type TriggerBackgroundAgentRequest as eH, type TriggerBackgroundAgentResponse as eI, TriggerBackgroundAgentToolSubject as eJ, type UpdateAgentJobRequest as eK, type UpdateAgentRequest as eL, type UpdateAgentSkillConfigRequest as eM, type UpdateAgentWidgetRequest as eN, type UpdateOrgAgentsRequest as eO, type UpdateOrgAgentsResponse as eP, type UpdateSkillOrgConfigRequest as eQ, type UpdateSkillRequest as eR, type UpdateSkillUserConfigRequest as eS, type UpdateSubAgentRequest as eT, type UpdateToolDefinitionRequest as eU, type UserSuggestedAction as eV, type UserSuggestedActionsConfig as eW, type UserSuggestedActionsRequest as eX, type UserSuggestedActionsResponse as eY, type ValidationError as eZ, type ValidationErrors as e_, type TaskStatusTS as ea, type TemplateCategoryCount as eb, type TemplateFilters as ec, type TemplateStatus as ed, TemplateStatusDraft as ee, TemplateStatusPublished as ef, type TemplateStatusTS as eg, type ToolConfig as eh, type ToolDefinition as ei, type ToolDefinitionResponse as ej, ToolDefinitionsCreateSubject as ek, ToolDefinitionsCreatedSubject as el, ToolDefinitionsDeleteSubject as em, ToolDefinitionsDeletedSubject as en, ToolDefinitionsExecuteSubject as eo, ToolDefinitionsGetByIDsSubject as ep, ToolDefinitionsGetSubject as eq, type ToolDefinitionsListResponse as er, ToolDefinitionsListSubject as es, ToolDefinitionsUpdateSubject as et, ToolDefinitionsUpdatedSubject as eu, ToolDefinitionsValidateSubject as ev, type ToolExecution as ew, type ToolExecutionPolicy as ex, type ToolExecutionProgress as ey, type ToolExecutionStatus as ez, AgentCategoryMarketing as f, type WidgetBehavior as f0, type WidgetConfig as f1, WidgetConfigGetByAgentSubject as f2, WidgetConfigSaveSubject as f3, type WidgetSecurity as f4, WorkflowAgentGetSubject as f5, WorkflowAgentUpdateSubject as f6, 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 };
|
|
2599
|
+
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, AgentVersionGetSubject 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, type AgentStatusTS as aA, type AgentStatusUpdate as aB, type AgentSubType as aC, AgentSubTypeChat as aD, AgentSubTypeDocument as aE, AgentSubTypeReact as aF, type AgentSubTypeTS as aG, AgentSubTypeWorkflow as aH, type AgentSummary as aI, AgentTaskTriggerSubject as aJ, type AgentTemplate as aK, AgentTemplateGetSubject as aL, AgentTemplateListSubject as aM, AgentTodoTriggerSubject as aN, type AgentTool as aO, type AgentToolConfiguration as aP, type AgentType as aQ, AgentTypeChat as aR, AgentTypeReact as aS, type AgentTypeTS as aT, AgentUpdateOrgSubject as aU, AgentUpdateSubject as aV, AgentUpdatedSubject as aW, AgentVersionActivateSubject as aX, AgentVersionActivatedSubject as aY, AgentVersionCreateSubject as aZ, AgentVersionCreatedSubject 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, AgentScopeCustom as ak, AgentScopeOrg as al, type AgentScopeTS as am, AgentScopeTeam as an, AgentScopeUser as ao, AgentSearchSubject as ap, type AgentSkill as aq, type AgentSkillConfigResponse as ar, AgentSkillGetConfigSubject as as, type AgentSkillTool as at, AgentSkillUpdateConfigSubject as au, type AgentStatus as av, AgentStatusActive as aw, AgentStatusArchived as ax, AgentStatusDraft as ay, AgentStatusInactive as az, AgentCategoryDevelopment as b, type GetAgentWidgetRequest as b$, AgentVersionListSubject as b0, type AgentWidget as b1, type AgentWidgetResponse as b2, AgentWidgetsCreateSubject as b3, AgentWidgetsDeleteSubject as b4, AgentWidgetsGetByWidgetID as b5, AgentWidgetsGetDefaultSubject as b6, AgentWidgetsGetSubject as b7, AgentWidgetsListSubject as b8, AgentWidgetsSetDefaultSubject as b9, type DeleteSkillUserConfigRequest as bA, type DeleteSubAgentRequest as bB, type DeleteToolDefinitionRequest as bC, type ExecuteJobRequest as bD, type ExecutePlanRequest as bE, type ExecutePlanResponse as bF, type ExecuteToolRequest as bG, type ExecuteToolResponse as bH, type ExecutionCompletedEvent as bI, type ExecutionMode as bJ, ExecutionModeAsync as bK, ExecutionModeAsyncClient as bL, ExecutionModeSync as bM, type ExecutionModeTS as bN, type ExecutionPlan as bO, type ExecutionResponse as bP, type ExecutionStatus as bQ, ExecutionStatusCompleted as bR, ExecutionStatusFailed as bS, ExecutionStatusPending as bT, ExecutionStatusRunning as bU, ExecutionStatusSkipped as bV, type ExecutionStatusTS as bW, ExecutionTTLHours as bX, ExecutionsTTLCleanupSubject as bY, type GetAgentRequest as bZ, type GetAgentSkillConfigRequest as b_, AgentWidgetsUpdateSubject as ba, type ArtifactRef as bb, type BackgroundAgentProgressEvent as bc, type BackgroundAgentStatusRequest as bd, type BackgroundAgentStatusResponse as be, type CSATAnswer as bf, type CSATConfig as bg, type CSATQuestion as bh, type CSATResponse as bi, type CSATSurvey as bj, ChatAgentExecuteSubject as bk, ChatAgentStatusSubject as bl, CheckBackgroundAgentStatusToolSubject as bm, type CreateAgentJobRequest as bn, type CreateAgentRequest as bo, type CreateAgentWidgetRequest as bp, type CreateExecutionPlanRequest as bq, type CreateExecutionPlanResponse as br, type CreateSkillRequest as bs, type CreateSubAgentRequest as bt, type CreateToolDefinitionRequest as bu, type CustomizableField as bv, type DefaultDefinitions as bw, type DeleteAgentRequest as bx, type DeleteAgentWidgetRequest as by, type DeleteSkillRequest as bz, AgentCategoryFinance as c, MergeStrategyReplace as c$, type GetDefaultAgentRequest as c0, type GetDefaultWidgetRequest as c1, type GetExecutionRequest as c2, type GetSkillRequest as c3, type GetSkillUserConfigRequest as c4, type GetSkillsByIDsRequest as c5, type GetSkillsByIDsResponse as c6, type GetSubAgentRequest as c7, type GetSubAgentsByIDsRequest as c8, type GetSubAgentsByIDsResponse as c9, JobScopeTeam as cA, type JobStatus as cB, JobStatusActive as cC, JobStatusDisabled as cD, JobStatusExecuting as cE, JobStatusPaused as cF, type JobStatusTS as cG, type ListAgentJobsRequest as cH, type ListAgentWidgetsRequest as cI, type ListAgentWidgetsResponse as cJ, type ListAgentsRequest as cK, type ListAgentsResponse as cL, type ListAgentsSummaryRequest as cM, type ListAgentsSummaryResponse as cN, type ListExecutionsByAgentRequest as cO, type ListExecutionsByJobRequest as cP, type ListExecutionsResponse as cQ, type ListSkillUserConfigRequest as cR, type ListSkillsRequest as cS, type ListSubAgentsRequest as cT, type ListToolDefinitionsRequest as cU, type MCPServerConfig as cV, MaxExecutions as cW, type MergeConfig as cX, type MergeStrategy as cY, MergeStrategyAppend as cZ, MergeStrategyMerge as c_, type GetToolDefinitionRequest as ca, type GetToolDefinitionsByIDsRequest as cb, type GetToolDefinitionsByIDsResponse as cc, type GetWidgetByWidgetIDRequest as cd, type GetWidgetConfigRequest as ce, type GetWidgetConfigResponse as cf, type HandoffConfig as cg, type IntegrationRequirement as ch, type JobExecution as ci, JobExecutionGetSubject as cj, JobExecutionListSubject as ck, type JobExecutionResult as cl, type JobExecutionStatus as cm, JobExecutionStatusFailed as cn, JobExecutionStatusRunning as co, JobExecutionStatusSuccess as cp, type JobExecutionStatusTS as cq, JobExecutionStatusTimedOut as cr, type JobFrequency as cs, JobFrequencyOneTime as ct, JobFrequencySchedule as cu, type JobFrequencyTS as cv, type JobScope as cw, JobScopeOrg as cx, JobScopePrivate as cy, type JobScopeTS as cz, AgentCategoryGeneral as d, SubAgentsDeleteSubject as d$, type MergeStrategyTS as d0, type PlanApprovalConfig as d1, type PlanStatus as d2, PlanStatusApproved as d3, PlanStatusCancelled as d4, PlanStatusCompleted as d5, PlanStatusExecuting as d6, PlanStatusPendingApproval as d7, PlanStatusRejected as d8, type PlanStatusTS as d9, SkillCategoryIntegration as dA, SkillCategoryProductivity as dB, type SkillCategoryTS as dC, SkillResolveConfigSubject as dD, type SkillResponse as dE, type SkillUserConfig as dF, SkillUserConfigDeleteSubject as dG, SkillUserConfigGetSubject as dH, type SkillUserConfigListResponse as dI, SkillUserConfigListSubject as dJ, type SkillUserConfigResponse as dK, SkillUserConfigUpdateSubject as dL, SkillsCreateSubject as dM, SkillsCreatedSubject as dN, SkillsDeleteSubject as dO, SkillsDeletedSubject as dP, SkillsGetByIDsSubject as dQ, SkillsGetSubject as dR, type SkillsListResponse as dS, SkillsListSubject as dT, SkillsUpdateOrgConfigSubject as dU, SkillsUpdateSubject as dV, SkillsUpdatedSubject as dW, type SubAgent as dX, type SubAgentResponse as dY, SubAgentsCreateSubject as dZ, SubAgentsCreatedSubject as d_, type PlannedStep as da, type ProcessJobTriggerResult as db, type PublicWidgetConfig as dc, type PublisherType as dd, PublisherTypeEloquent as de, PublisherTypePartner as df, type PublisherTypeTS as dg, type ReactAgentConfig as dh, ReactAgentExecuteSubject as di, ReactAgentStatusSubject as dj, ReactAgentStopSubject as dk, type ResolveSkillConfigRequest as dl, type ResolveSkillConfigResponse as dm, type RetryPolicy as dn, RuntimeJobCompletedSubject as dp, RuntimeJobExecuteSubject as dq, type SaveWidgetConfigRequest as dr, type SaveWidgetConfigResponse as ds, type SetDefaultWidgetRequest as dt, type Skill as du, type SkillCategory as dv, SkillCategoryAnalysis as dw, SkillCategoryCommunication as dx, SkillCategoryCreative as dy, SkillCategoryCustom as dz, AgentCategoryHR as e, type ValidationErrors as e$, SubAgentsDeletedSubject as e0, SubAgentsExecuteSubject as e1, SubAgentsGetByIDsSubject as e2, SubAgentsGetSubject as e3, type SubAgentsListResponse as e4, SubAgentsListSubject as e5, SubAgentsUpdateSubject as e6, SubAgentsUpdatedSubject as e7, SubAgentsValidateSubject as e8, type TTLCleanupRequest as e9, type ToolExecutionStatus as eA, ToolExecutionStatusCompleted as eB, ToolExecutionStatusExecuting as eC, ToolExecutionStatusFailed as eD, ToolExecutionStatusSkipped as eE, ToolExecutionStatusStarted as eF, type ToolExecutionStatusTS as eG, ToolExecutionStatusTimeout as eH, type TriggerBackgroundAgentRequest as eI, type TriggerBackgroundAgentResponse as eJ, TriggerBackgroundAgentToolSubject as eK, type UpdateAgentJobRequest as eL, type UpdateAgentRequest as eM, type UpdateAgentSkillConfigRequest as eN, type UpdateAgentWidgetRequest as eO, type UpdateOrgAgentsRequest as eP, type UpdateOrgAgentsResponse as eQ, type UpdateSkillOrgConfigRequest as eR, type UpdateSkillRequest as eS, type UpdateSkillUserConfigRequest as eT, type UpdateSubAgentRequest as eU, type UpdateToolDefinitionRequest as eV, type UserSuggestedAction as eW, type UserSuggestedActionsConfig as eX, type UserSuggestedActionsRequest as eY, type UserSuggestedActionsResponse as eZ, type ValidationError as e_, type TTLCleanupResponse as ea, type TaskStatusTS as eb, type TemplateCategoryCount as ec, type TemplateFilters as ed, type TemplateStatus as ee, TemplateStatusDraft as ef, TemplateStatusPublished as eg, type TemplateStatusTS as eh, type ToolConfig as ei, type ToolDefinition as ej, type ToolDefinitionResponse as ek, ToolDefinitionsCreateSubject as el, ToolDefinitionsCreatedSubject as em, ToolDefinitionsDeleteSubject as en, ToolDefinitionsDeletedSubject as eo, ToolDefinitionsExecuteSubject as ep, ToolDefinitionsGetByIDsSubject as eq, ToolDefinitionsGetSubject as er, type ToolDefinitionsListResponse as es, ToolDefinitionsListSubject as et, ToolDefinitionsUpdateSubject as eu, ToolDefinitionsUpdatedSubject as ev, ToolDefinitionsValidateSubject as ew, type ToolExecution as ex, type ToolExecutionPolicy as ey, type ToolExecutionProgress as ez, AgentCategoryMarketing as f, type WidgetAppearance as f0, type WidgetBehavior as f1, type WidgetConfig as f2, WidgetConfigGetByAgentSubject as f3, WidgetConfigSaveSubject as f4, type WidgetSecurity as f5, WorkflowAgentGetSubject as f6, WorkflowAgentUpdateSubject as f7, 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 };
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiClientOptions, ApiResponse } from '@elqnt/api-client';
|
|
2
2
|
import { ResponseMetadata } from '@elqnt/types';
|
|
3
|
-
import { A as Agent,
|
|
4
|
-
export { aI as AgentSummary,
|
|
3
|
+
import { A as Agent, be as BackgroundAgentStatusResponse, ai as AgentResponse, Z as AgentJob, a4 as AgentJobResponse, du as Skill, dE as SkillResponse, dX as SubAgent, dY as SubAgentResponse, ej as ToolDefinition, ek as ToolDefinitionResponse, b1 as AgentWidget, b2 as AgentWidgetResponse, dK as SkillUserConfigResponse, c6 as GetSkillsByIDsResponse, cc as GetToolDefinitionsByIDsResponse, aa as AgentJobsListResponse, cL as ListAgentsResponse, cN as ListAgentsSummaryResponse, dI as SkillUserConfigListResponse, dS as SkillsListResponse, e4 as SubAgentsListResponse, es as ToolDefinitionsListResponse, cJ as ListAgentWidgetsResponse, dm as ResolveSkillConfigResponse, eI as TriggerBackgroundAgentRequest, eJ as TriggerBackgroundAgentResponse } from '../agent-models-B-wTMdwF.mjs';
|
|
4
|
+
export { aI as AgentSummary, dF as SkillUserConfig } from '../agent-models-B-wTMdwF.mjs';
|
|
5
5
|
import { ap as IntegrationProviderTS, aA as IntegrationTypeTS, e as ConnectIntegrationResponse, h as CreateSandboxRequest, i as CreateSandboxResponse, m as DeleteSandboxResponse, r as DisconnectIntegrationResponse, R as GetUserIntegrationResponse, O as GetSandboxResponse, ai as IntegrationCallbackResponse, aL as ListUserIntegrationsResponse, aJ as ListSandboxesResponse, aU as RefreshIntegrationResponse, aW as RunEmailTriageResponse, ba as UpdateTriageEnabledResponse, b6 as UpdateSandboxRequest, b7 as UpdateSandboxResponse } from '../sandbox-Djb8gA7e.mjs';
|
|
6
6
|
export { aX as Sandbox, bb as UserIntegration } from '../sandbox-Djb8gA7e.mjs';
|
|
7
7
|
import { a as StructuredOutputRequest, b as StructuredOutputResponse } from '../structured-Bs0IjwLD.mjs';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiClientOptions, ApiResponse } from '@elqnt/api-client';
|
|
2
2
|
import { ResponseMetadata } from '@elqnt/types';
|
|
3
|
-
import { A as Agent,
|
|
4
|
-
export { aI as AgentSummary,
|
|
3
|
+
import { A as Agent, be as BackgroundAgentStatusResponse, ai as AgentResponse, Z as AgentJob, a4 as AgentJobResponse, du as Skill, dE as SkillResponse, dX as SubAgent, dY as SubAgentResponse, ej as ToolDefinition, ek as ToolDefinitionResponse, b1 as AgentWidget, b2 as AgentWidgetResponse, dK as SkillUserConfigResponse, c6 as GetSkillsByIDsResponse, cc as GetToolDefinitionsByIDsResponse, aa as AgentJobsListResponse, cL as ListAgentsResponse, cN as ListAgentsSummaryResponse, dI as SkillUserConfigListResponse, dS as SkillsListResponse, e4 as SubAgentsListResponse, es as ToolDefinitionsListResponse, cJ as ListAgentWidgetsResponse, dm as ResolveSkillConfigResponse, eI as TriggerBackgroundAgentRequest, eJ as TriggerBackgroundAgentResponse } from '../agent-models-B-wTMdwF.js';
|
|
4
|
+
export { aI as AgentSummary, dF as SkillUserConfig } from '../agent-models-B-wTMdwF.js';
|
|
5
5
|
import { ap as IntegrationProviderTS, aA as IntegrationTypeTS, e as ConnectIntegrationResponse, h as CreateSandboxRequest, i as CreateSandboxResponse, m as DeleteSandboxResponse, r as DisconnectIntegrationResponse, R as GetUserIntegrationResponse, O as GetSandboxResponse, ai as IntegrationCallbackResponse, aL as ListUserIntegrationsResponse, aJ as ListSandboxesResponse, aU as RefreshIntegrationResponse, aW as RunEmailTriageResponse, ba as UpdateTriageEnabledResponse, b6 as UpdateSandboxRequest, b7 as UpdateSandboxResponse } from '../sandbox-Djb8gA7e.js';
|
|
6
6
|
export { aX as Sandbox, bb as UserIntegration } from '../sandbox-Djb8gA7e.js';
|
|
7
7
|
import { a as StructuredOutputRequest, b as StructuredOutputResponse } from '../structured-Bs0IjwLD.js';
|
package/dist/api/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
92
|
+
var _chunkQH234LAOjs = require('../chunk-QH234LAO.js');
|
|
92
93
|
|
|
93
|
-
var _chunkENKX5CU7js = require('../chunk-ENKX5CU7.js');
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
|
|
@@ -181,6 +181,5 @@ var _chunkENKX5CU7js = require('../chunk-ENKX5CU7.js');
|
|
|
181
181
|
|
|
182
182
|
|
|
183
183
|
|
|
184
|
-
|
|
185
|
-
exports.checkBackgroundAgentStatusApi = _chunkENKX5CU7js.checkBackgroundAgentStatusApi; exports.completeSchedulerTaskApi = _chunkENKX5CU7js.completeSchedulerTaskApi; exports.connectIntegrationApi = _chunkENKX5CU7js.connectIntegrationApi; exports.createAgentApi = _chunkENKX5CU7js.createAgentApi; exports.createAgentJobApi = _chunkENKX5CU7js.createAgentJobApi; exports.createBackgroundChatApi = _chunkENKX5CU7js.createBackgroundChatApi; exports.createSandboxApi = _chunkENKX5CU7js.createSandboxApi; exports.createScheduleApi = _chunkENKX5CU7js.createScheduleApi; exports.createSchedulerTaskApi = _chunkENKX5CU7js.createSchedulerTaskApi; exports.createSkillApi = _chunkENKX5CU7js.createSkillApi; exports.createSubAgentApi = _chunkENKX5CU7js.createSubAgentApi; exports.createToolDefinitionApi = _chunkENKX5CU7js.createToolDefinitionApi; exports.createWidgetApi = _chunkENKX5CU7js.createWidgetApi; exports.deleteAgentApi = _chunkENKX5CU7js.deleteAgentApi; exports.deleteAgentJobApi = _chunkENKX5CU7js.deleteAgentJobApi; exports.deleteSandboxApi = _chunkENKX5CU7js.deleteSandboxApi; exports.deleteScheduleApi = _chunkENKX5CU7js.deleteScheduleApi; exports.deleteSchedulerTaskApi = _chunkENKX5CU7js.deleteSchedulerTaskApi; exports.deleteSkillApi = _chunkENKX5CU7js.deleteSkillApi; exports.deleteSkillUserConfigApi = _chunkENKX5CU7js.deleteSkillUserConfigApi; exports.deleteSubAgentApi = _chunkENKX5CU7js.deleteSubAgentApi; exports.deleteToolDefinitionApi = _chunkENKX5CU7js.deleteToolDefinitionApi; exports.deleteWidgetApi = _chunkENKX5CU7js.deleteWidgetApi; exports.disconnectIntegrationApi = _chunkENKX5CU7js.disconnectIntegrationApi; exports.exportAgentApi = _chunkENKX5CU7js.exportAgentApi; exports.getAgentApi = _chunkENKX5CU7js.getAgentApi; exports.getAgentByNameApi = _chunkENKX5CU7js.getAgentByNameApi; exports.getAgentCSATAnalyticsApi = _chunkENKX5CU7js.getAgentCSATAnalyticsApi; exports.getAgentChatsAnalyticsApi = _chunkENKX5CU7js.getAgentChatsAnalyticsApi; exports.getAgentJobApi = _chunkENKX5CU7js.getAgentJobApi; exports.getAgentListAnalyticsApi = _chunkENKX5CU7js.getAgentListAnalyticsApi; exports.getDefaultAgentApi = _chunkENKX5CU7js.getDefaultAgentApi; exports.getDefaultWidgetApi = _chunkENKX5CU7js.getDefaultWidgetApi; exports.getIntegrationApi = _chunkENKX5CU7js.getIntegrationApi; exports.getSandboxApi = _chunkENKX5CU7js.getSandboxApi; exports.getScheduleApi = _chunkENKX5CU7js.getScheduleApi; exports.getSchedulerTaskApi = _chunkENKX5CU7js.getSchedulerTaskApi; exports.getSkillApi = _chunkENKX5CU7js.getSkillApi; exports.getSkillCategoriesApi = _chunkENKX5CU7js.getSkillCategoriesApi; exports.getSkillUserConfigApi = _chunkENKX5CU7js.getSkillUserConfigApi; exports.getSkillsByIdsApi = _chunkENKX5CU7js.getSkillsByIdsApi; exports.getSubAgentApi = _chunkENKX5CU7js.getSubAgentApi; exports.getTaskOutcomesApi = _chunkENKX5CU7js.getTaskOutcomesApi; exports.getToolDefinitionApi = _chunkENKX5CU7js.getToolDefinitionApi; exports.getToolDefinitionsByIdsApi = _chunkENKX5CU7js.getToolDefinitionsByIdsApi; exports.getWidgetApi = _chunkENKX5CU7js.getWidgetApi; exports.getWidgetByWidgetIdApi = _chunkENKX5CU7js.getWidgetByWidgetIdApi; exports.importAgentApi = _chunkENKX5CU7js.importAgentApi; exports.integrationCallbackApi = _chunkENKX5CU7js.integrationCallbackApi; exports.listAgentJobsApi = _chunkENKX5CU7js.listAgentJobsApi; exports.listAgentsApi = _chunkENKX5CU7js.listAgentsApi; exports.listAgentsSummaryApi = _chunkENKX5CU7js.listAgentsSummaryApi; exports.listIntegrationsApi = _chunkENKX5CU7js.listIntegrationsApi; exports.listSandboxesApi = _chunkENKX5CU7js.listSandboxesApi; exports.listSchedulerTasksApi = _chunkENKX5CU7js.listSchedulerTasksApi; exports.listSchedulesApi = _chunkENKX5CU7js.listSchedulesApi; exports.listSkillUserConfigsApi = _chunkENKX5CU7js.listSkillUserConfigsApi; exports.listSkillsApi = _chunkENKX5CU7js.listSkillsApi; exports.listSubAgentsApi = _chunkENKX5CU7js.listSubAgentsApi; exports.listToolDefinitionsApi = _chunkENKX5CU7js.listToolDefinitionsApi; exports.listWidgetsApi = _chunkENKX5CU7js.listWidgetsApi; exports.loadChatApi = _chunkENKX5CU7js.loadChatApi; exports.pauseAgentJobApi = _chunkENKX5CU7js.pauseAgentJobApi; exports.pauseScheduleApi = _chunkENKX5CU7js.pauseScheduleApi; exports.provisionAgentsApi = _chunkENKX5CU7js.provisionAgentsApi; exports.refreshIntegrationApi = _chunkENKX5CU7js.refreshIntegrationApi; exports.resolveSkillConfigApi = _chunkENKX5CU7js.resolveSkillConfigApi; exports.resumeAgentJobApi = _chunkENKX5CU7js.resumeAgentJobApi; exports.resumeScheduleApi = _chunkENKX5CU7js.resumeScheduleApi; exports.runEmailTriageApi = _chunkENKX5CU7js.runEmailTriageApi; exports.runScheduleApi = _chunkENKX5CU7js.runScheduleApi; exports.searchSkillsApi = _chunkENKX5CU7js.searchSkillsApi; exports.sendChatMessageApi = _chunkENKX5CU7js.sendChatMessageApi; exports.setDefaultWidgetApi = _chunkENKX5CU7js.setDefaultWidgetApi; exports.snoozeSchedulerTaskApi = _chunkENKX5CU7js.snoozeSchedulerTaskApi; exports.startSchedulerTaskApi = _chunkENKX5CU7js.startSchedulerTaskApi; exports.structuredOutputApi = _chunkENKX5CU7js.structuredOutputApi; exports.triggerBackgroundAgentApi = _chunkENKX5CU7js.triggerBackgroundAgentApi; exports.updateAgentApi = _chunkENKX5CU7js.updateAgentApi; exports.updateAgentJobApi = _chunkENKX5CU7js.updateAgentJobApi; exports.updateIntegrationTriageApi = _chunkENKX5CU7js.updateIntegrationTriageApi; exports.updateSandboxApi = _chunkENKX5CU7js.updateSandboxApi; exports.updateScheduleApi = _chunkENKX5CU7js.updateScheduleApi; exports.updateSchedulerTaskApi = _chunkENKX5CU7js.updateSchedulerTaskApi; exports.updateSkillApi = _chunkENKX5CU7js.updateSkillApi; exports.updateSkillOrgConfigApi = _chunkENKX5CU7js.updateSkillOrgConfigApi; exports.updateSkillUserConfigApi = _chunkENKX5CU7js.updateSkillUserConfigApi; exports.updateSubAgentApi = _chunkENKX5CU7js.updateSubAgentApi; exports.updateToolDefinitionApi = _chunkENKX5CU7js.updateToolDefinitionApi; exports.updateWidgetApi = _chunkENKX5CU7js.updateWidgetApi;
|
|
184
|
+
exports.checkBackgroundAgentStatusApi = _chunkQH234LAOjs.checkBackgroundAgentStatusApi; exports.completeSchedulerTaskApi = _chunkQH234LAOjs.completeSchedulerTaskApi; exports.connectIntegrationApi = _chunkQH234LAOjs.connectIntegrationApi; exports.createAgentApi = _chunkQH234LAOjs.createAgentApi; exports.createAgentJobApi = _chunkQH234LAOjs.createAgentJobApi; exports.createBackgroundChatApi = _chunkQH234LAOjs.createBackgroundChatApi; exports.createSandboxApi = _chunkQH234LAOjs.createSandboxApi; exports.createScheduleApi = _chunkQH234LAOjs.createScheduleApi; exports.createSchedulerTaskApi = _chunkQH234LAOjs.createSchedulerTaskApi; exports.createSkillApi = _chunkQH234LAOjs.createSkillApi; exports.createSubAgentApi = _chunkQH234LAOjs.createSubAgentApi; exports.createToolDefinitionApi = _chunkQH234LAOjs.createToolDefinitionApi; exports.createWidgetApi = _chunkQH234LAOjs.createWidgetApi; exports.deleteAgentApi = _chunkQH234LAOjs.deleteAgentApi; exports.deleteAgentJobApi = _chunkQH234LAOjs.deleteAgentJobApi; exports.deleteSandboxApi = _chunkQH234LAOjs.deleteSandboxApi; exports.deleteScheduleApi = _chunkQH234LAOjs.deleteScheduleApi; exports.deleteSchedulerTaskApi = _chunkQH234LAOjs.deleteSchedulerTaskApi; exports.deleteSkillApi = _chunkQH234LAOjs.deleteSkillApi; exports.deleteSkillUserConfigApi = _chunkQH234LAOjs.deleteSkillUserConfigApi; exports.deleteSubAgentApi = _chunkQH234LAOjs.deleteSubAgentApi; exports.deleteToolDefinitionApi = _chunkQH234LAOjs.deleteToolDefinitionApi; exports.deleteWidgetApi = _chunkQH234LAOjs.deleteWidgetApi; exports.disconnectIntegrationApi = _chunkQH234LAOjs.disconnectIntegrationApi; exports.exportAgentApi = _chunkQH234LAOjs.exportAgentApi; exports.getAgentApi = _chunkQH234LAOjs.getAgentApi; exports.getAgentByNameApi = _chunkQH234LAOjs.getAgentByNameApi; exports.getAgentCSATAnalyticsApi = _chunkQH234LAOjs.getAgentCSATAnalyticsApi; exports.getAgentChatsAnalyticsApi = _chunkQH234LAOjs.getAgentChatsAnalyticsApi; exports.getAgentJobApi = _chunkQH234LAOjs.getAgentJobApi; exports.getAgentListAnalyticsApi = _chunkQH234LAOjs.getAgentListAnalyticsApi; exports.getDefaultAgentApi = _chunkQH234LAOjs.getDefaultAgentApi; exports.getDefaultWidgetApi = _chunkQH234LAOjs.getDefaultWidgetApi; exports.getIntegrationApi = _chunkQH234LAOjs.getIntegrationApi; exports.getSandboxApi = _chunkQH234LAOjs.getSandboxApi; exports.getScheduleApi = _chunkQH234LAOjs.getScheduleApi; exports.getSchedulerTaskApi = _chunkQH234LAOjs.getSchedulerTaskApi; exports.getSkillApi = _chunkQH234LAOjs.getSkillApi; exports.getSkillCategoriesApi = _chunkQH234LAOjs.getSkillCategoriesApi; exports.getSkillUserConfigApi = _chunkQH234LAOjs.getSkillUserConfigApi; exports.getSkillsByIdsApi = _chunkQH234LAOjs.getSkillsByIdsApi; exports.getSubAgentApi = _chunkQH234LAOjs.getSubAgentApi; exports.getTaskOutcomesApi = _chunkQH234LAOjs.getTaskOutcomesApi; exports.getToolDefinitionApi = _chunkQH234LAOjs.getToolDefinitionApi; exports.getToolDefinitionsByIdsApi = _chunkQH234LAOjs.getToolDefinitionsByIdsApi; exports.getWidgetApi = _chunkQH234LAOjs.getWidgetApi; exports.getWidgetByWidgetIdApi = _chunkQH234LAOjs.getWidgetByWidgetIdApi; exports.importAgentApi = _chunkQH234LAOjs.importAgentApi; exports.integrationCallbackApi = _chunkQH234LAOjs.integrationCallbackApi; exports.listAgentJobsApi = _chunkQH234LAOjs.listAgentJobsApi; exports.listAgentsApi = _chunkQH234LAOjs.listAgentsApi; exports.listAgentsSummaryApi = _chunkQH234LAOjs.listAgentsSummaryApi; exports.listIntegrationsApi = _chunkQH234LAOjs.listIntegrationsApi; exports.listSandboxesApi = _chunkQH234LAOjs.listSandboxesApi; exports.listSchedulerTasksApi = _chunkQH234LAOjs.listSchedulerTasksApi; exports.listSchedulesApi = _chunkQH234LAOjs.listSchedulesApi; exports.listSkillUserConfigsApi = _chunkQH234LAOjs.listSkillUserConfigsApi; exports.listSkillsApi = _chunkQH234LAOjs.listSkillsApi; exports.listSubAgentsApi = _chunkQH234LAOjs.listSubAgentsApi; exports.listToolDefinitionsApi = _chunkQH234LAOjs.listToolDefinitionsApi; exports.listWidgetsApi = _chunkQH234LAOjs.listWidgetsApi; exports.loadChatApi = _chunkQH234LAOjs.loadChatApi; exports.pauseAgentJobApi = _chunkQH234LAOjs.pauseAgentJobApi; exports.pauseScheduleApi = _chunkQH234LAOjs.pauseScheduleApi; exports.provisionAgentsApi = _chunkQH234LAOjs.provisionAgentsApi; exports.refreshIntegrationApi = _chunkQH234LAOjs.refreshIntegrationApi; exports.resolveSkillConfigApi = _chunkQH234LAOjs.resolveSkillConfigApi; exports.resumeAgentJobApi = _chunkQH234LAOjs.resumeAgentJobApi; exports.resumeScheduleApi = _chunkQH234LAOjs.resumeScheduleApi; exports.runEmailTriageApi = _chunkQH234LAOjs.runEmailTriageApi; exports.runScheduleApi = _chunkQH234LAOjs.runScheduleApi; exports.searchSkillsApi = _chunkQH234LAOjs.searchSkillsApi; exports.sendChatMessageApi = _chunkQH234LAOjs.sendChatMessageApi; exports.setDefaultWidgetApi = _chunkQH234LAOjs.setDefaultWidgetApi; exports.snoozeSchedulerTaskApi = _chunkQH234LAOjs.snoozeSchedulerTaskApi; exports.startSchedulerTaskApi = _chunkQH234LAOjs.startSchedulerTaskApi; exports.structuredOutputApi = _chunkQH234LAOjs.structuredOutputApi; exports.triggerBackgroundAgentApi = _chunkQH234LAOjs.triggerBackgroundAgentApi; exports.updateAgentApi = _chunkQH234LAOjs.updateAgentApi; exports.updateAgentJobApi = _chunkQH234LAOjs.updateAgentJobApi; exports.updateIntegrationTriageApi = _chunkQH234LAOjs.updateIntegrationTriageApi; exports.updateSandboxApi = _chunkQH234LAOjs.updateSandboxApi; exports.updateScheduleApi = _chunkQH234LAOjs.updateScheduleApi; exports.updateSchedulerTaskApi = _chunkQH234LAOjs.updateSchedulerTaskApi; exports.updateSkillApi = _chunkQH234LAOjs.updateSkillApi; exports.updateSkillOrgConfigApi = _chunkQH234LAOjs.updateSkillOrgConfigApi; exports.updateSkillUserConfigApi = _chunkQH234LAOjs.updateSkillUserConfigApi; exports.updateSubAgentApi = _chunkQH234LAOjs.updateSubAgentApi; exports.updateToolDefinitionApi = _chunkQH234LAOjs.updateToolDefinitionApi; exports.updateWidgetApi = _chunkQH234LAOjs.updateWidgetApi;
|
|
186
185
|
//# sourceMappingURL=index.js.map
|
package/dist/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/eloquent/eloquent/packages/@elqnt/agents/dist/api/index.js"],"names":[],"mappings":"AAAA;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;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;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,u2LAAC","file":"/home/runner/work/eloquent/eloquent/packages/@elqnt/agents/dist/api/index.js"}
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import {
|
|
3
2
|
checkBackgroundAgentStatusApi,
|
|
4
3
|
completeSchedulerTaskApi,
|
|
@@ -90,7 +89,7 @@ import {
|
|
|
90
89
|
updateSubAgentApi,
|
|
91
90
|
updateToolDefinitionApi,
|
|
92
91
|
updateWidgetApi
|
|
93
|
-
} from "../chunk-
|
|
92
|
+
} from "../chunk-NHIVBTLU.mjs";
|
|
94
93
|
export {
|
|
95
94
|
checkBackgroundAgentStatusApi,
|
|
96
95
|
completeSchedulerTaskApi,
|
package/dist/api/server.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiResponse } from '@elqnt/api-client';
|
|
2
2
|
import { ResponseMetadata } from '@elqnt/types';
|
|
3
|
-
import {
|
|
3
|
+
import { be as BackgroundAgentStatusResponse, Z as AgentJob, a4 as AgentJobResponse, A as Agent, ai as AgentResponse, du as Skill, dE as SkillResponse, dX as SubAgent, dY as SubAgentResponse, ej as ToolDefinition, ek as ToolDefinitionResponse, b1 as AgentWidget, b2 as AgentWidgetResponse, dK as SkillUserConfigResponse, c6 as GetSkillsByIDsResponse, cc as GetToolDefinitionsByIDsResponse, aa as AgentJobsListResponse, cL as ListAgentsResponse, cN as ListAgentsSummaryResponse, dI as SkillUserConfigListResponse, dS as SkillsListResponse, e4 as SubAgentsListResponse, es as ToolDefinitionsListResponse, cJ as ListAgentWidgetsResponse, dm as ResolveSkillConfigResponse, eI as TriggerBackgroundAgentRequest, eJ as TriggerBackgroundAgentResponse } from '../agent-models-B-wTMdwF.mjs';
|
|
4
4
|
import { a as StructuredOutputRequest, b as StructuredOutputResponse } from '../structured-Bs0IjwLD.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/api/server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiResponse } from '@elqnt/api-client';
|
|
2
2
|
import { ResponseMetadata } from '@elqnt/types';
|
|
3
|
-
import {
|
|
3
|
+
import { be as BackgroundAgentStatusResponse, Z as AgentJob, a4 as AgentJobResponse, A as Agent, ai as AgentResponse, du as Skill, dE as SkillResponse, dX as SubAgent, dY as SubAgentResponse, ej as ToolDefinition, ek as ToolDefinitionResponse, b1 as AgentWidget, b2 as AgentWidgetResponse, dK as SkillUserConfigResponse, c6 as GetSkillsByIDsResponse, cc as GetToolDefinitionsByIDsResponse, aa as AgentJobsListResponse, cL as ListAgentsResponse, cN as ListAgentsSummaryResponse, dI as SkillUserConfigListResponse, dS as SkillsListResponse, e4 as SubAgentsListResponse, es as ToolDefinitionsListResponse, cJ as ListAgentWidgetsResponse, dm as ResolveSkillConfigResponse, eI as TriggerBackgroundAgentRequest, eJ as TriggerBackgroundAgentResponse } from '../agent-models-B-wTMdwF.js';
|
|
4
4
|
import { a as StructuredOutputRequest, b as StructuredOutputResponse } from '../structured-Bs0IjwLD.js';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/api/server.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
-
|
|
3
|
-
// api/server.ts
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// api/server.ts
|
|
4
2
|
var _server = require('@elqnt/api-client/server');
|
|
5
3
|
function buildRequestOptions(options, method = "GET", body) {
|
|
6
4
|
return {
|
package/dist/api/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/ahmed/workspace/eloquent/eloquent/packages/@elqnt/agents/dist/api/server.js","../../api/server.ts"],"names":[],"mappings":"AAAA,yLAAY;AACZ;AACA;ACqBA,kDAA4D;AA0D5D,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,EA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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;AAOE;AAGwB,EAAA;AAC1B;AAGE;AAG8C,EAAA;AAChD;AAYE;AAEO,EAAA;AACL,IAAA;AAC4C,IAAA;AAC9C,EAAA;AACF;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;ADrNoD;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","file":"/Users/ahmed/workspace/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 TriggerBackgroundAgentRequest,\n TriggerBackgroundAgentResponse,\n BackgroundAgentStatusResponse,\n StructuredOutputRequest,\n StructuredOutputResponse,\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\n// v2 skills are addressed by name (no surrogate id); skillId is ignored.\nexport async function updateSkillServer(_skillId: string, skill: Partial<Skill>, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>> {\n return serverApiRequest(`/api/v1/skills/by-name?name=${encodeURIComponent(skill.name ?? \"\")}`, buildRequestOptions(options, \"PUT\", skill));\n}\n\nexport async function deleteSkillServer(name: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/skills/by-name?name=${encodeURIComponent(name)}`, 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// BACKGROUND AGENT TRIGGER\n// =============================================================================\n\nexport async function triggerBackgroundAgentServer(\n request: Pick<TriggerBackgroundAgentRequest, \"name\" | \"prompt\" | \"agentName\" | \"context\" | \"enableSSE\" | \"frequency\" | \"cron\" | \"timezone\" | \"scope\" | \"description\">,\n options: ServerApiOptions\n): Promise<ApiResponse<TriggerBackgroundAgentResponse>> {\n return serverApiRequest(\"/api/v1/agent-jobs/trigger\", buildRequestOptions(options, \"POST\", request));\n}\n\nexport async function checkBackgroundAgentStatusServer(\n jobId: string,\n options: ServerApiOptions\n): Promise<ApiResponse<BackgroundAgentStatusResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}/status`, buildRequestOptions(options, \"GET\"));\n}\n\n// =============================================================================\n// STRUCTURED OUTPUT\n// =============================================================================\n\n/**\n * Server-side twin of `structuredOutputApi`. Use inside Next.js server actions\n * or API routes. See docs/agents/structured-output.md.\n */\nexport async function structuredOutputServer<T = unknown>(\n request: StructuredOutputRequest,\n options: ServerApiOptions\n): Promise<ApiResponse<StructuredOutputResponse<T>>> {\n return serverApiRequest<StructuredOutputResponse<T>>(\n \"/api/v1/agents/structured\",\n buildRequestOptions(options, \"POST\", request)\n );\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\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AAA;AAC7C;AAE+D;AAClB,EAAA;AAC7C;ADvNoD;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","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 TriggerBackgroundAgentRequest,\n TriggerBackgroundAgentResponse,\n BackgroundAgentStatusResponse,\n StructuredOutputRequest,\n StructuredOutputResponse,\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\n// v2 skills are addressed by name (no surrogate id); skillId is ignored.\nexport async function updateSkillServer(_skillId: string, skill: Partial<Skill>, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>> {\n return serverApiRequest(`/api/v1/skills/by-name?name=${encodeURIComponent(skill.name ?? \"\")}`, buildRequestOptions(options, \"PUT\", skill));\n}\n\nexport async function deleteSkillServer(name: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/skills/by-name?name=${encodeURIComponent(name)}`, 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// BACKGROUND AGENT TRIGGER\n// =============================================================================\n\nexport async function triggerBackgroundAgentServer(\n request: Pick<TriggerBackgroundAgentRequest, \"name\" | \"prompt\" | \"agentName\" | \"context\" | \"enableSSE\" | \"frequency\" | \"cron\" | \"timezone\" | \"scope\" | \"description\">,\n options: ServerApiOptions\n): Promise<ApiResponse<TriggerBackgroundAgentResponse>> {\n return serverApiRequest(\"/api/v1/agent-jobs/trigger\", buildRequestOptions(options, \"POST\", request));\n}\n\nexport async function checkBackgroundAgentStatusServer(\n jobId: string,\n options: ServerApiOptions\n): Promise<ApiResponse<BackgroundAgentStatusResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}/status`, buildRequestOptions(options, \"GET\"));\n}\n\n// =============================================================================\n// STRUCTURED OUTPUT\n// =============================================================================\n\n/**\n * Server-side twin of `structuredOutputApi`. Use inside Next.js server actions\n * or API routes. See docs/agents/structured-output.md.\n */\nexport async function structuredOutputServer<T = unknown>(\n request: StructuredOutputRequest,\n options: ServerApiOptions\n): Promise<ApiResponse<StructuredOutputResponse<T>>> {\n return serverApiRequest<StructuredOutputResponse<T>>(\n \"/api/v1/agents/structured\",\n buildRequestOptions(options, \"POST\", request)\n );\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"]}
|
package/dist/api/server.mjs
CHANGED
package/dist/api/server.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../api/server.ts"],"sourcesContent":["/**\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 TriggerBackgroundAgentRequest,\n TriggerBackgroundAgentResponse,\n BackgroundAgentStatusResponse,\n StructuredOutputRequest,\n StructuredOutputResponse,\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\n// v2 skills are addressed by name (no surrogate id); skillId is ignored.\nexport async function updateSkillServer(_skillId: string, skill: Partial<Skill>, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>> {\n return serverApiRequest(`/api/v1/skills/by-name?name=${encodeURIComponent(skill.name ?? \"\")}`, buildRequestOptions(options, \"PUT\", skill));\n}\n\nexport async function deleteSkillServer(name: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/skills/by-name?name=${encodeURIComponent(name)}`, 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// BACKGROUND AGENT TRIGGER\n// =============================================================================\n\nexport async function triggerBackgroundAgentServer(\n request: Pick<TriggerBackgroundAgentRequest, \"name\" | \"prompt\" | \"agentName\" | \"context\" | \"enableSSE\" | \"frequency\" | \"cron\" | \"timezone\" | \"scope\" | \"description\">,\n options: ServerApiOptions\n): Promise<ApiResponse<TriggerBackgroundAgentResponse>> {\n return serverApiRequest(\"/api/v1/agent-jobs/trigger\", buildRequestOptions(options, \"POST\", request));\n}\n\nexport async function checkBackgroundAgentStatusServer(\n jobId: string,\n options: ServerApiOptions\n): Promise<ApiResponse<BackgroundAgentStatusResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}/status`, buildRequestOptions(options, \"GET\"));\n}\n\n// =============================================================================\n// STRUCTURED OUTPUT\n// =============================================================================\n\n/**\n * Server-side twin of `structuredOutputApi`. Use inside Next.js server actions\n * or API routes. See docs/agents/structured-output.md.\n */\nexport async function structuredOutputServer<T = unknown>(\n request: StructuredOutputRequest,\n options: ServerApiOptions\n): Promise<ApiResponse<StructuredOutputResponse<T>>> {\n return serverApiRequest<StructuredOutputResponse<T>>(\n \"/api/v1/agents/structured\",\n buildRequestOptions(options, \"POST\", request)\n );\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 ToolD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,SAAO,iBAAiB,mBAAmB,QAAQ,YAAY,oBAAoB,SAAS,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAClH;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../api/server.ts"],"sourcesContent":["/**\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 TriggerBackgroundAgentRequest,\n TriggerBackgroundAgentResponse,\n BackgroundAgentStatusResponse,\n StructuredOutputRequest,\n StructuredOutputResponse,\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\n// v2 skills are addressed by name (no surrogate id); skillId is ignored.\nexport async function updateSkillServer(_skillId: string, skill: Partial<Skill>, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>> {\n return serverApiRequest(`/api/v1/skills/by-name?name=${encodeURIComponent(skill.name ?? \"\")}`, buildRequestOptions(options, \"PUT\", skill));\n}\n\nexport async function deleteSkillServer(name: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/skills/by-name?name=${encodeURIComponent(name)}`, 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// BACKGROUND AGENT TRIGGER\n// =============================================================================\n\nexport async function triggerBackgroundAgentServer(\n request: Pick<TriggerBackgroundAgentRequest, \"name\" | \"prompt\" | \"agentName\" | \"context\" | \"enableSSE\" | \"frequency\" | \"cron\" | \"timezone\" | \"scope\" | \"description\">,\n options: ServerApiOptions\n): Promise<ApiResponse<TriggerBackgroundAgentResponse>> {\n return serverApiRequest(\"/api/v1/agent-jobs/trigger\", buildRequestOptions(options, \"POST\", request));\n}\n\nexport async function checkBackgroundAgentStatusServer(\n jobId: string,\n options: ServerApiOptions\n): Promise<ApiResponse<BackgroundAgentStatusResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}/status`, buildRequestOptions(options, \"GET\"));\n}\n\n// =============================================================================\n// STRUCTURED OUTPUT\n// =============================================================================\n\n/**\n * Server-side twin of `structuredOutputApi`. Use inside Next.js server actions\n * or API routes. See docs/agents/structured-output.md.\n */\nexport async function structuredOutputServer<T = unknown>(\n request: StructuredOutputRequest,\n options: ServerApiOptions\n): Promise<ApiResponse<StructuredOutputResponse<T>>> {\n return serverApiRequest<StructuredOutputResponse<T>>(\n \"/api/v1/agents/structured\",\n buildRequestOptions(options, \"POST\", request)\n );\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"],"mappings":";AAuBA,SAAS,wBAAmD;AA0D5D,SAAS,oBAAoB,SAA2B,SAAyC,OAAO,MAA6B;AACnI,SAAO;AAAA,IACL,YAAY,QAAQ;AAAA,IACpB,WAAW,QAAQ;AAAA,IACnB,OAAO,QAAQ;AAAA,IACf,QAAQ,QAAQ;AAAA,IAChB,WAAW,QAAQ;AAAA,IACnB,SAAS,QAAQ;AAAA,IACjB,OAAO,QAAQ;AAAA,IACf;AAAA,IACA;AAAA,EACF;AACF;AAMA,eAAsB,iBAAiB,SAAqE;AAC1G,SAAO,iBAAiB,kBAAkB,oBAAoB,SAAS,KAAK,CAAC;AAC/E;AAEA,eAAsB,wBAAwB,SAA4E;AACxH,SAAO,iBAAiB,0BAA0B,oBAAoB,SAAS,KAAK,CAAC;AACvF;AAEA,eAAsB,eAAe,SAAiB,SAAgE;AACpH,SAAO,iBAAiB,kBAAkB,OAAO,IAAI,oBAAoB,SAAS,KAAK,CAAC;AAC1F;AAEA,eAAsB,kBAAkB,OAAuB,SAAgE;AAC7H,SAAO,iBAAiB,kBAAkB,oBAA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