@wiro-ai/wiro-mcp 1.4.0 → 1.5.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 +50 -17
- package/dist/client.d.ts +25 -6
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +129 -29
- package/dist/client.js.map +1 -1
- package/dist/instructions.d.ts.map +1 -1
- package/dist/instructions.js +24 -17
- package/dist/instructions.js.map +1 -1
- package/dist/playbooks.d.ts.map +1 -1
- package/dist/playbooks.js +61 -48
- package/dist/playbooks.js.map +1 -1
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +4 -3
- package/dist/prompts.js.map +1 -1
- package/dist/server.d.ts +6 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +3 -4
- package/dist/server.js.map +1 -1
- package/dist/tools/apply-agent-skills.d.ts.map +1 -1
- package/dist/tools/apply-agent-skills.js +400 -88
- package/dist/tools/apply-agent-skills.js.map +1 -1
- package/dist/tools/bind-agent-project.d.ts +4 -0
- package/dist/tools/bind-agent-project.d.ts.map +1 -0
- package/dist/tools/bind-agent-project.js +403 -0
- package/dist/tools/bind-agent-project.js.map +1 -0
- package/dist/tools/cancel-agent-message.d.ts.map +1 -1
- package/dist/tools/cancel-agent-message.js +6 -3
- package/dist/tools/cancel-agent-message.js.map +1 -1
- package/dist/tools/cancel-task.js +3 -3
- package/dist/tools/cancel-task.js.map +1 -1
- package/dist/tools/clone-workflow.d.ts.map +1 -1
- package/dist/tools/clone-workflow.js +5 -4
- package/dist/tools/clone-workflow.js.map +1 -1
- package/dist/tools/connect-agent-oauth.d.ts.map +1 -1
- package/dist/tools/connect-agent-oauth.js +144 -44
- package/dist/tools/connect-agent-oauth.js.map +1 -1
- package/dist/tools/control-agent.d.ts.map +1 -1
- package/dist/tools/control-agent.js +133 -45
- package/dist/tools/control-agent.js.map +1 -1
- package/dist/tools/create-workflow.d.ts +9 -6
- package/dist/tools/create-workflow.d.ts.map +1 -1
- package/dist/tools/create-workflow.js +13 -13
- package/dist/tools/create-workflow.js.map +1 -1
- package/dist/tools/delete-agent-session.d.ts.map +1 -1
- package/dist/tools/delete-agent-session.js +20 -14
- package/dist/tools/delete-agent-session.js.map +1 -1
- package/dist/tools/delete-agent.d.ts.map +1 -1
- package/dist/tools/delete-agent.js +14 -10
- package/dist/tools/delete-agent.js.map +1 -1
- package/dist/tools/delete-workflow.d.ts.map +1 -1
- package/dist/tools/delete-workflow.js +6 -5
- package/dist/tools/delete-workflow.js.map +1 -1
- package/dist/tools/deploy-agent.d.ts.map +1 -1
- package/dist/tools/deploy-agent.js +215 -47
- package/dist/tools/deploy-agent.js.map +1 -1
- package/dist/tools/disconnect-agent-oauth.d.ts.map +1 -1
- package/dist/tools/disconnect-agent-oauth.js +32 -12
- package/dist/tools/disconnect-agent-oauth.js.map +1 -1
- package/dist/tools/get-account.d.ts.map +1 -1
- package/dist/tools/get-account.js +157 -49
- package/dist/tools/get-account.js.map +1 -1
- package/dist/tools/get-agent-activity.d.ts.map +1 -1
- package/dist/tools/get-agent-activity.js +186 -36
- package/dist/tools/get-agent-activity.js.map +1 -1
- package/dist/tools/get-agent-conversation.d.ts.map +1 -1
- package/dist/tools/get-agent-conversation.js +65 -39
- package/dist/tools/get-agent-conversation.js.map +1 -1
- package/dist/tools/get-agent-message.d.ts.map +1 -1
- package/dist/tools/get-agent-message.js +6 -4
- package/dist/tools/get-agent-message.js.map +1 -1
- package/dist/tools/get-agent-template.d.ts.map +1 -1
- package/dist/tools/get-agent-template.js +33 -17
- package/dist/tools/get-agent-template.js.map +1 -1
- package/dist/tools/get-model-schema.d.ts.map +1 -1
- package/dist/tools/get-model-schema.js +7 -5
- package/dist/tools/get-model-schema.js.map +1 -1
- package/dist/tools/get-my-agent.d.ts.map +1 -1
- package/dist/tools/get-my-agent.js +54 -11
- package/dist/tools/get-my-agent.js.map +1 -1
- package/dist/tools/get-playbook.d.ts.map +1 -1
- package/dist/tools/get-playbook.js +3 -2
- package/dist/tools/get-playbook.js.map +1 -1
- package/dist/tools/get-task-price.d.ts +1 -1
- package/dist/tools/get-task-price.d.ts.map +1 -1
- package/dist/tools/get-task-price.js +29 -8
- package/dist/tools/get-task-price.js.map +1 -1
- package/dist/tools/get-task.d.ts.map +1 -1
- package/dist/tools/get-task.js +25 -9
- package/dist/tools/get-task.js.map +1 -1
- package/dist/tools/get-workflow.d.ts.map +1 -1
- package/dist/tools/get-workflow.js +46 -21
- package/dist/tools/get-workflow.js.map +1 -1
- package/dist/tools/index.d.ts +4 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +10 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/kill-task.js +3 -3
- package/dist/tools/kill-task.js.map +1 -1
- package/dist/tools/list-agent-skills.d.ts.map +1 -1
- package/dist/tools/list-agent-skills.js +5 -4
- package/dist/tools/list-agent-skills.js.map +1 -1
- package/dist/tools/list-agent-templates.js +4 -4
- package/dist/tools/list-agent-templates.js.map +1 -1
- package/dist/tools/list-my-agents.d.ts.map +1 -1
- package/dist/tools/list-my-agents.js +14 -8
- package/dist/tools/list-my-agents.js.map +1 -1
- package/dist/tools/list-projects.d.ts +4 -0
- package/dist/tools/list-projects.d.ts.map +1 -0
- package/dist/tools/list-projects.js +141 -0
- package/dist/tools/list-projects.js.map +1 -0
- package/dist/tools/list-studio-results.js +3 -3
- package/dist/tools/list-studio-results.js.map +1 -1
- package/dist/tools/list-tasks.js +3 -3
- package/dist/tools/list-tasks.js.map +1 -1
- package/dist/tools/list-workflow-runs.d.ts.map +1 -1
- package/dist/tools/list-workflow-runs.js +6 -4
- package/dist/tools/list-workflow-runs.js.map +1 -1
- package/dist/tools/list-workflows.d.ts.map +1 -1
- package/dist/tools/list-workflows.js +7 -6
- package/dist/tools/list-workflows.js.map +1 -1
- package/dist/tools/manage-agent-billing.d.ts.map +1 -1
- package/dist/tools/manage-agent-billing.js +259 -87
- package/dist/tools/manage-agent-billing.js.map +1 -1
- package/dist/tools/manage-agent-custom-skill.d.ts.map +1 -1
- package/dist/tools/manage-agent-custom-skill.js +91 -21
- package/dist/tools/manage-agent-custom-skill.js.map +1 -1
- package/dist/tools/recommend-model.js +3 -3
- package/dist/tools/recommend-model.js.map +1 -1
- package/dist/tools/resume-workflow-run.d.ts.map +1 -1
- package/dist/tools/resume-workflow-run.js +3 -2
- package/dist/tools/resume-workflow-run.js.map +1 -1
- package/dist/tools/run-model.js +5 -5
- package/dist/tools/run-model.js.map +1 -1
- package/dist/tools/run-workflow.d.ts.map +1 -1
- package/dist/tools/run-workflow.js +3 -2
- package/dist/tools/run-workflow.js.map +1 -1
- package/dist/tools/save-workflow-from-agent.d.ts.map +1 -1
- package/dist/tools/save-workflow-from-agent.js +22 -20
- package/dist/tools/save-workflow-from-agent.js.map +1 -1
- package/dist/tools/schemas.d.ts +150 -127
- package/dist/tools/schemas.d.ts.map +1 -1
- package/dist/tools/schemas.js +76 -3
- package/dist/tools/schemas.js.map +1 -1
- package/dist/tools/search-docs.js +3 -3
- package/dist/tools/search-docs.js.map +1 -1
- package/dist/tools/search-models.d.ts.map +1 -1
- package/dist/tools/search-models.js +7 -4
- package/dist/tools/search-models.js.map +1 -1
- package/dist/tools/send-agent-message.d.ts.map +1 -1
- package/dist/tools/send-agent-message.js +32 -11
- package/dist/tools/send-agent-message.js.map +1 -1
- package/dist/tools/set-agent-credentials.d.ts.map +1 -1
- package/dist/tools/set-agent-credentials.js +60 -59
- package/dist/tools/set-agent-credentials.js.map +1 -1
- package/dist/tools/update-agent.d.ts.map +1 -1
- package/dist/tools/update-agent.js +59 -21
- package/dist/tools/update-agent.js.map +1 -1
- package/dist/tools/update-workflow.d.ts +205 -6
- package/dist/tools/update-workflow.d.ts.map +1 -1
- package/dist/tools/update-workflow.js +20 -7
- package/dist/tools/update-workflow.js.map +1 -1
- package/dist/tools/upload-file.d.ts.map +1 -1
- package/dist/tools/upload-file.js +13 -9
- package/dist/tools/upload-file.js.map +1 -1
- package/dist/tools/wait-for-task.d.ts.map +1 -1
- package/dist/tools/wait-for-task.js +23 -5
- package/dist/tools/wait-for-task.js.map +1 -1
- package/dist/tools/wait-for-workflow-run.d.ts +18 -18
- package/dist/tools/wait-for-workflow-run.d.ts.map +1 -1
- package/dist/tools/wait-for-workflow-run.js +7 -6
- package/dist/tools/wait-for-workflow-run.js.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/agent-catalog.d.ts +168 -139
- package/dist/utils/agent-catalog.d.ts.map +1 -1
- package/dist/utils/agent-catalog.js +34 -14
- package/dist/utils/agent-catalog.js.map +1 -1
- package/dist/utils/agent-config.d.ts +111 -8
- package/dist/utils/agent-config.d.ts.map +1 -1
- package/dist/utils/agent-config.js +290 -40
- package/dist/utils/agent-config.js.map +1 -1
- package/dist/utils/agent-message.d.ts +41 -22
- package/dist/utils/agent-message.d.ts.map +1 -1
- package/dist/utils/agent-message.js +94 -31
- package/dist/utils/agent-message.js.map +1 -1
- package/dist/utils/agent-targets.d.ts +8 -4
- package/dist/utils/agent-targets.d.ts.map +1 -1
- package/dist/utils/agent-targets.js +51 -35
- package/dist/utils/agent-targets.js.map +1 -1
- package/dist/utils/agent-turns.d.ts +31 -24
- package/dist/utils/agent-turns.d.ts.map +1 -1
- package/dist/utils/agent-turns.js +154 -35
- package/dist/utils/agent-turns.js.map +1 -1
- package/dist/utils/api.d.ts +6 -0
- package/dist/utils/api.d.ts.map +1 -1
- package/dist/utils/api.js +22 -1
- package/dist/utils/api.js.map +1 -1
- package/dist/utils/format.d.ts +27 -1
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/format.js +429 -82
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/json-schema-dialect.d.ts +8 -1
- package/dist/utils/json-schema-dialect.d.ts.map +1 -1
- package/dist/utils/json-schema-dialect.js +27 -1
- package/dist/utils/json-schema-dialect.js.map +1 -1
- package/dist/utils/media.d.ts +8 -0
- package/dist/utils/media.d.ts.map +1 -1
- package/dist/utils/media.js +29 -0
- package/dist/utils/media.js.map +1 -1
- package/dist/utils/poll.d.ts +5 -2
- package/dist/utils/poll.d.ts.map +1 -1
- package/dist/utils/poll.js +10 -9
- package/dist/utils/poll.js.map +1 -1
- package/dist/utils/quoted-text.d.ts +28 -0
- package/dist/utils/quoted-text.d.ts.map +1 -0
- package/dist/utils/quoted-text.js +64 -0
- package/dist/utils/quoted-text.js.map +1 -0
- package/dist/utils/structured.d.ts +2 -0
- package/dist/utils/structured.d.ts.map +1 -1
- package/dist/utils/structured.js +15 -2
- package/dist/utils/structured.js.map +1 -1
- package/dist/utils/studio-runs.d.ts +4 -4
- package/dist/utils/studio-runs.d.ts.map +1 -1
- package/dist/utils/studio-runs.js +11 -8
- package/dist/utils/studio-runs.js.map +1 -1
- package/dist/utils/user-agent.d.ts +376 -241
- package/dist/utils/user-agent.d.ts.map +1 -1
- package/dist/utils/user-agent.js +302 -89
- package/dist/utils/user-agent.js.map +1 -1
- package/dist/utils/wiro-project.d.ts +45 -0
- package/dist/utils/wiro-project.d.ts.map +1 -0
- package/dist/utils/wiro-project.js +66 -0
- package/dist/utils/wiro-project.js.map +1 -0
- package/dist/utils/workflow-agent.d.ts +4 -4
- package/dist/utils/workflow-save.d.ts +23 -5
- package/dist/utils/workflow-save.d.ts.map +1 -1
- package/dist/utils/workflow-save.js +130 -38
- package/dist/utils/workflow-save.js.map +1 -1
- package/dist/utils/workflow.d.ts +79 -61
- package/dist/utils/workflow.d.ts.map +1 -1
- package/dist/utils/workflow.js +149 -19
- package/dist/utils/workflow.js.map +1 -1
- package/dist/utils/workspace.d.ts +64 -0
- package/dist/utils/workspace.d.ts.map +1 -0
- package/dist/utils/workspace.js +173 -0
- package/dist/utils/workspace.js.map +1 -0
- package/package.json +6 -4
|
@@ -8,7 +8,9 @@ export declare function readAgentStatus(row: Record<string, unknown>): number |
|
|
|
8
8
|
export declare function agentStatusLabel(status: number | null | undefined): AgentStatusLabel;
|
|
9
9
|
/** "Running (4)" */
|
|
10
10
|
export declare function describeAgentStatus(status: number | null | undefined): string;
|
|
11
|
-
export declare
|
|
11
|
+
export declare const MEMBER_SETUP_HELP: string;
|
|
12
|
+
/** plainMember: the connection acts as a member of the agent's team without admin rights. */
|
|
13
|
+
export declare function agentStatusHint(status: number | null | undefined, plainMember?: boolean): string;
|
|
12
14
|
/** Stopping, queued and starting move on by themselves; every other status stays until someone acts. */
|
|
13
15
|
export declare function isTransitionalStatus(status: number | null | undefined): boolean;
|
|
14
16
|
export declare const AGENT_TIERS: readonly ["starter", "pro"];
|
|
@@ -80,48 +82,64 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
80
82
|
periodEndsAt: z.ZodOptional<z.ZodString>;
|
|
81
83
|
daysRemaining: z.ZodNullable<z.ZodNumber>;
|
|
82
84
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
85
|
+
atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
|
|
83
86
|
}, "strip", z.ZodTypeAny, {
|
|
84
87
|
status: string;
|
|
88
|
+
amountUsd: number | null;
|
|
85
89
|
billing: "wallet" | "card";
|
|
86
90
|
switchingToWallet: boolean;
|
|
87
|
-
amountUsd: number | null;
|
|
88
91
|
daysRemaining: number | null;
|
|
89
92
|
cancelAtPeriodEnd: boolean;
|
|
90
93
|
periodEndsAt?: string | undefined;
|
|
94
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
91
95
|
}, {
|
|
92
96
|
status: string;
|
|
97
|
+
amountUsd: number | null;
|
|
93
98
|
billing: "wallet" | "card";
|
|
94
99
|
switchingToWallet: boolean;
|
|
95
|
-
amountUsd: number | null;
|
|
96
100
|
daysRemaining: number | null;
|
|
97
101
|
cancelAtPeriodEnd: boolean;
|
|
98
102
|
periodEndsAt?: string | undefined;
|
|
103
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
99
104
|
}>;
|
|
100
105
|
export type AgentSubscription = z.infer<typeof subscriptionSchema>;
|
|
101
|
-
|
|
106
|
+
/**
|
|
107
|
+
* Whether a plan ends with its current period: true when it ends, false when
|
|
108
|
+
* it renews, null when that is not known. A wallet plan says so itself, and a
|
|
109
|
+
* card plan moving to wallet billing renews from the wallet, even though its
|
|
110
|
+
* card subscription is set to end with the period. Any other card plan is
|
|
111
|
+
* known only when the row carries its card state (cardEnds).
|
|
112
|
+
*/
|
|
113
|
+
export declare function planEndsWithPeriod(subscription: Record<string, unknown>, cardEnds?: unknown): boolean | null;
|
|
114
|
+
export declare function toSubscription(value: unknown, cardEnds?: unknown): AgentSubscription | null;
|
|
102
115
|
/** How a new charge for this plan is paid right now. */
|
|
103
116
|
export declare function chargeRoute(subscription: unknown): 'wallet' | 'card' | null;
|
|
104
117
|
export declare const creditsSchema: z.ZodObject<{
|
|
105
118
|
monthly: z.ZodNumber;
|
|
119
|
+
renewal: z.ZodOptional<z.ZodNumber>;
|
|
106
120
|
extra: z.ZodNumber;
|
|
107
121
|
used: z.ZodNumber;
|
|
108
122
|
remaining: z.ZodNumber;
|
|
109
123
|
period: z.ZodOptional<z.ZodString>;
|
|
110
124
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
extra: number;
|
|
112
125
|
monthly: number;
|
|
126
|
+
extra: number;
|
|
113
127
|
used: number;
|
|
114
128
|
remaining: number;
|
|
129
|
+
renewal?: number | undefined;
|
|
115
130
|
period?: string | undefined;
|
|
116
131
|
}, {
|
|
117
|
-
extra: number;
|
|
118
132
|
monthly: number;
|
|
133
|
+
extra: number;
|
|
119
134
|
used: number;
|
|
120
135
|
remaining: number;
|
|
136
|
+
renewal?: number | undefined;
|
|
121
137
|
period?: string | undefined;
|
|
122
138
|
}>;
|
|
123
139
|
export type AgentCredits = z.infer<typeof creditsSchema>;
|
|
124
140
|
export declare function toCredits(row: Record<string, unknown>): AgentCredits;
|
|
141
|
+
/** The monthly credits as said in a line: those of this period, and those of each renewal when they differ. */
|
|
142
|
+
export declare function monthlyCreditsText(credits: Pick<AgentCredits, 'monthly' | 'renewal'>): string;
|
|
125
143
|
/** Plain text from catalog HTML. Links keep their target so setup steps stay usable. */
|
|
126
144
|
export declare function htmlToText(value: unknown, maxLength?: number): string;
|
|
127
145
|
export declare function toStringArray(value: unknown): string[];
|
|
@@ -134,24 +152,24 @@ export declare const credentialStatusSchema: z.ZodObject<{
|
|
|
134
152
|
filled: z.ZodBoolean;
|
|
135
153
|
requiredMissing: z.ZodBoolean;
|
|
136
154
|
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
title: string;
|
|
138
|
-
optional: boolean;
|
|
139
155
|
key: string;
|
|
156
|
+
optional: boolean;
|
|
157
|
+
title: string;
|
|
140
158
|
oauth: boolean;
|
|
141
159
|
connected: boolean;
|
|
142
160
|
filled: boolean;
|
|
143
161
|
requiredMissing: boolean;
|
|
144
162
|
}, {
|
|
145
|
-
title: string;
|
|
146
|
-
optional: boolean;
|
|
147
163
|
key: string;
|
|
164
|
+
optional: boolean;
|
|
165
|
+
title: string;
|
|
148
166
|
oauth: boolean;
|
|
149
167
|
connected: boolean;
|
|
150
168
|
filled: boolean;
|
|
151
169
|
requiredMissing: boolean;
|
|
152
170
|
}>;
|
|
153
171
|
export type CredentialStatus = z.infer<typeof credentialStatusSchema>;
|
|
154
|
-
/**
|
|
172
|
+
/** The state of each credential: whether it is filled, connected or missing. */
|
|
155
173
|
export declare function summarizeCredentials(credentials: unknown, skipKeys?: Set<string>): CredentialStatus[];
|
|
156
174
|
export declare const channelStatusSchema: z.ZodObject<{
|
|
157
175
|
id: z.ZodString;
|
|
@@ -163,24 +181,27 @@ export declare const channelStatusSchema: z.ZodObject<{
|
|
|
163
181
|
}, "strip", z.ZodTypeAny, {
|
|
164
182
|
id: string;
|
|
165
183
|
title: string;
|
|
184
|
+
credentialKey: string;
|
|
166
185
|
enabled: boolean;
|
|
167
|
-
missingFields: string[];
|
|
168
186
|
configured: boolean;
|
|
169
|
-
|
|
187
|
+
missingFields: string[];
|
|
170
188
|
}, {
|
|
171
189
|
id: string;
|
|
172
190
|
title: string;
|
|
191
|
+
credentialKey: string;
|
|
173
192
|
enabled: boolean;
|
|
174
|
-
missingFields: string[];
|
|
175
193
|
configured: boolean;
|
|
176
|
-
|
|
194
|
+
missingFields: string[];
|
|
177
195
|
}>;
|
|
178
196
|
export type ChannelStatus = z.infer<typeof channelStatusSchema>;
|
|
179
197
|
export declare function summarizeChannels(value: unknown): ChannelStatus[];
|
|
198
|
+
/** The scheduled task a custom build starts with. It runs only once its text has been written. */
|
|
199
|
+
export declare const STARTER_TASK_KEY = "cs-cron-my-scheduled-task";
|
|
180
200
|
export declare const agentTaskSchema: z.ZodObject<{
|
|
181
201
|
key: z.ZodString;
|
|
182
202
|
description: z.ZodOptional<z.ZodString>;
|
|
183
203
|
enabled: z.ZodBoolean;
|
|
204
|
+
notWritten: z.ZodOptional<z.ZodBoolean>;
|
|
184
205
|
interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
185
206
|
source: z.ZodOptional<z.ZodEnum<["template", "skill", "user"]>>;
|
|
186
207
|
instructions: z.ZodOptional<z.ZodString>;
|
|
@@ -188,23 +209,42 @@ export declare const agentTaskSchema: z.ZodObject<{
|
|
|
188
209
|
}, "strip", z.ZodTypeAny, {
|
|
189
210
|
key: string;
|
|
190
211
|
enabled: boolean;
|
|
212
|
+
instructions?: string | undefined;
|
|
191
213
|
description?: string | undefined;
|
|
192
|
-
|
|
214
|
+
notWritten?: boolean | undefined;
|
|
193
215
|
interval?: string | null | undefined;
|
|
194
|
-
|
|
216
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
195
217
|
instructionsTruncated?: boolean | undefined;
|
|
196
218
|
}, {
|
|
197
219
|
key: string;
|
|
198
220
|
enabled: boolean;
|
|
221
|
+
instructions?: string | undefined;
|
|
199
222
|
description?: string | undefined;
|
|
200
|
-
|
|
223
|
+
notWritten?: boolean | undefined;
|
|
201
224
|
interval?: string | null | undefined;
|
|
202
|
-
|
|
225
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
203
226
|
instructionsTruncated?: boolean | undefined;
|
|
204
227
|
}>;
|
|
205
228
|
export type AgentTask = z.infer<typeof agentTaskSchema>;
|
|
206
229
|
/** Custom instructions and scheduled tasks, with the instruction text cut short. */
|
|
207
230
|
export declare function summarizeTasks(value: unknown, maxInstructionLength?: number): AgentTask[];
|
|
231
|
+
declare const selectableModelSchema: z.ZodObject<{
|
|
232
|
+
slug: z.ZodString;
|
|
233
|
+
label: z.ZodOptional<z.ZodString>;
|
|
234
|
+
inputCreditsPer1M: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
outputCreditsPer1M: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
slug: string;
|
|
238
|
+
label?: string | undefined;
|
|
239
|
+
inputCreditsPer1M?: number | undefined;
|
|
240
|
+
outputCreditsPer1M?: number | undefined;
|
|
241
|
+
}, {
|
|
242
|
+
slug: string;
|
|
243
|
+
label?: string | undefined;
|
|
244
|
+
inputCreditsPer1M?: number | undefined;
|
|
245
|
+
outputCreditsPer1M?: number | undefined;
|
|
246
|
+
}>;
|
|
247
|
+
type SelectableModel = z.infer<typeof selectableModelSchema>;
|
|
208
248
|
export declare const extraCreditPackSchema: z.ZodObject<{
|
|
209
249
|
pack: z.ZodString;
|
|
210
250
|
credits: z.ZodNumber;
|
|
@@ -232,34 +272,37 @@ export declare const agentSummarySchema: z.ZodObject<{
|
|
|
232
272
|
title: z.ZodOptional<z.ZodString>;
|
|
233
273
|
}, "strip", z.ZodTypeAny, {
|
|
234
274
|
custom: boolean;
|
|
235
|
-
slug?: string | undefined;
|
|
236
|
-
title?: string | undefined;
|
|
237
275
|
guid?: string | undefined;
|
|
276
|
+
title?: string | undefined;
|
|
277
|
+
slug?: string | undefined;
|
|
238
278
|
}, {
|
|
239
279
|
custom: boolean;
|
|
240
|
-
slug?: string | undefined;
|
|
241
|
-
title?: string | undefined;
|
|
242
280
|
guid?: string | undefined;
|
|
281
|
+
title?: string | undefined;
|
|
282
|
+
slug?: string | undefined;
|
|
243
283
|
}>;
|
|
244
284
|
tier: z.ZodOptional<z.ZodString>;
|
|
245
285
|
monthlyPriceUsd: z.ZodNullable<z.ZodNumber>;
|
|
246
286
|
credits: z.ZodObject<{
|
|
247
287
|
monthly: z.ZodNumber;
|
|
288
|
+
renewal: z.ZodOptional<z.ZodNumber>;
|
|
248
289
|
extra: z.ZodNumber;
|
|
249
290
|
used: z.ZodNumber;
|
|
250
291
|
remaining: z.ZodNumber;
|
|
251
292
|
period: z.ZodOptional<z.ZodString>;
|
|
252
293
|
}, "strip", z.ZodTypeAny, {
|
|
253
|
-
extra: number;
|
|
254
294
|
monthly: number;
|
|
295
|
+
extra: number;
|
|
255
296
|
used: number;
|
|
256
297
|
remaining: number;
|
|
298
|
+
renewal?: number | undefined;
|
|
257
299
|
period?: string | undefined;
|
|
258
300
|
}, {
|
|
259
|
-
extra: number;
|
|
260
301
|
monthly: number;
|
|
302
|
+
extra: number;
|
|
261
303
|
used: number;
|
|
262
304
|
remaining: number;
|
|
305
|
+
renewal?: number | undefined;
|
|
263
306
|
period?: string | undefined;
|
|
264
307
|
}>;
|
|
265
308
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
@@ -270,100 +313,110 @@ export declare const agentSummarySchema: z.ZodObject<{
|
|
|
270
313
|
periodEndsAt: z.ZodOptional<z.ZodString>;
|
|
271
314
|
daysRemaining: z.ZodNullable<z.ZodNumber>;
|
|
272
315
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
316
|
+
atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
|
|
273
317
|
}, "strip", z.ZodTypeAny, {
|
|
274
318
|
status: string;
|
|
319
|
+
amountUsd: number | null;
|
|
275
320
|
billing: "wallet" | "card";
|
|
276
321
|
switchingToWallet: boolean;
|
|
277
|
-
amountUsd: number | null;
|
|
278
322
|
daysRemaining: number | null;
|
|
279
323
|
cancelAtPeriodEnd: boolean;
|
|
280
324
|
periodEndsAt?: string | undefined;
|
|
325
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
281
326
|
}, {
|
|
282
327
|
status: string;
|
|
328
|
+
amountUsd: number | null;
|
|
283
329
|
billing: "wallet" | "card";
|
|
284
330
|
switchingToWallet: boolean;
|
|
285
|
-
amountUsd: number | null;
|
|
286
331
|
daysRemaining: number | null;
|
|
287
332
|
cancelAtPeriodEnd: boolean;
|
|
288
333
|
periodEndsAt?: string | undefined;
|
|
334
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
289
335
|
}>>;
|
|
290
336
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
291
337
|
teamSessionMode: z.ZodOptional<z.ZodString>;
|
|
292
338
|
skills: z.ZodArray<z.ZodString, "many">;
|
|
293
339
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
294
340
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
341
|
+
lastActivityAt: z.ZodOptional<z.ZodString>;
|
|
295
342
|
}, "strip", z.ZodTypeAny, {
|
|
296
|
-
status: number | null;
|
|
297
|
-
title: string;
|
|
298
343
|
guid: string;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
status: string;
|
|
303
|
-
billing: "wallet" | "card";
|
|
304
|
-
switchingToWallet: boolean;
|
|
305
|
-
amountUsd: number | null;
|
|
306
|
-
daysRemaining: number | null;
|
|
307
|
-
cancelAtPeriodEnd: boolean;
|
|
308
|
-
periodEndsAt?: string | undefined;
|
|
309
|
-
} | null;
|
|
344
|
+
title: string;
|
|
345
|
+
status: number | null;
|
|
346
|
+
workspace: "team" | "personal";
|
|
310
347
|
credits: {
|
|
311
|
-
extra: number;
|
|
312
348
|
monthly: number;
|
|
349
|
+
extra: number;
|
|
313
350
|
used: number;
|
|
314
351
|
remaining: number;
|
|
352
|
+
renewal?: number | undefined;
|
|
315
353
|
period?: string | undefined;
|
|
316
354
|
};
|
|
317
355
|
template: {
|
|
318
356
|
custom: boolean;
|
|
319
|
-
slug?: string | undefined;
|
|
320
|
-
title?: string | undefined;
|
|
321
357
|
guid?: string | undefined;
|
|
358
|
+
title?: string | undefined;
|
|
359
|
+
slug?: string | undefined;
|
|
322
360
|
};
|
|
323
361
|
statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
|
|
324
362
|
setupRequired: boolean;
|
|
325
363
|
monthlyPriceUsd: number | null;
|
|
326
|
-
createdAt?: string | undefined;
|
|
327
|
-
updatedAt?: string | undefined;
|
|
328
|
-
tier?: string | undefined;
|
|
329
|
-
timezone?: string | null | undefined;
|
|
330
|
-
teamSessionMode?: string | undefined;
|
|
331
|
-
}, {
|
|
332
|
-
status: number | null;
|
|
333
|
-
title: string;
|
|
334
|
-
guid: string;
|
|
335
|
-
workspace: "personal" | "team";
|
|
336
|
-
skills: string[];
|
|
337
364
|
subscription: {
|
|
338
365
|
status: string;
|
|
366
|
+
amountUsd: number | null;
|
|
339
367
|
billing: "wallet" | "card";
|
|
340
368
|
switchingToWallet: boolean;
|
|
341
|
-
amountUsd: number | null;
|
|
342
369
|
daysRemaining: number | null;
|
|
343
370
|
cancelAtPeriodEnd: boolean;
|
|
344
371
|
periodEndsAt?: string | undefined;
|
|
372
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
345
373
|
} | null;
|
|
374
|
+
skills: string[];
|
|
375
|
+
createdAt?: string | undefined;
|
|
376
|
+
updatedAt?: string | undefined;
|
|
377
|
+
tier?: string | undefined;
|
|
378
|
+
timezone?: string | null | undefined;
|
|
379
|
+
teamSessionMode?: string | undefined;
|
|
380
|
+
lastActivityAt?: string | undefined;
|
|
381
|
+
}, {
|
|
382
|
+
guid: string;
|
|
383
|
+
title: string;
|
|
384
|
+
status: number | null;
|
|
385
|
+
workspace: "team" | "personal";
|
|
346
386
|
credits: {
|
|
347
|
-
extra: number;
|
|
348
387
|
monthly: number;
|
|
388
|
+
extra: number;
|
|
349
389
|
used: number;
|
|
350
390
|
remaining: number;
|
|
391
|
+
renewal?: number | undefined;
|
|
351
392
|
period?: string | undefined;
|
|
352
393
|
};
|
|
353
394
|
template: {
|
|
354
395
|
custom: boolean;
|
|
355
|
-
slug?: string | undefined;
|
|
356
|
-
title?: string | undefined;
|
|
357
396
|
guid?: string | undefined;
|
|
397
|
+
title?: string | undefined;
|
|
398
|
+
slug?: string | undefined;
|
|
358
399
|
};
|
|
359
400
|
statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
|
|
360
401
|
setupRequired: boolean;
|
|
361
402
|
monthlyPriceUsd: number | null;
|
|
403
|
+
subscription: {
|
|
404
|
+
status: string;
|
|
405
|
+
amountUsd: number | null;
|
|
406
|
+
billing: "wallet" | "card";
|
|
407
|
+
switchingToWallet: boolean;
|
|
408
|
+
daysRemaining: number | null;
|
|
409
|
+
cancelAtPeriodEnd: boolean;
|
|
410
|
+
periodEndsAt?: string | undefined;
|
|
411
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
412
|
+
} | null;
|
|
413
|
+
skills: string[];
|
|
362
414
|
createdAt?: string | undefined;
|
|
363
415
|
updatedAt?: string | undefined;
|
|
364
416
|
tier?: string | undefined;
|
|
365
417
|
timezone?: string | null | undefined;
|
|
366
418
|
teamSessionMode?: string | undefined;
|
|
419
|
+
lastActivityAt?: string | undefined;
|
|
367
420
|
}>;
|
|
368
421
|
export type AgentSummary = z.infer<typeof agentSummarySchema>;
|
|
369
422
|
export declare const agentDetailSchema: z.ZodObject<{
|
|
@@ -380,34 +433,37 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
380
433
|
title: z.ZodOptional<z.ZodString>;
|
|
381
434
|
}, "strip", z.ZodTypeAny, {
|
|
382
435
|
custom: boolean;
|
|
383
|
-
slug?: string | undefined;
|
|
384
|
-
title?: string | undefined;
|
|
385
436
|
guid?: string | undefined;
|
|
437
|
+
title?: string | undefined;
|
|
438
|
+
slug?: string | undefined;
|
|
386
439
|
}, {
|
|
387
440
|
custom: boolean;
|
|
388
|
-
slug?: string | undefined;
|
|
389
|
-
title?: string | undefined;
|
|
390
441
|
guid?: string | undefined;
|
|
442
|
+
title?: string | undefined;
|
|
443
|
+
slug?: string | undefined;
|
|
391
444
|
}>;
|
|
392
445
|
tier: z.ZodOptional<z.ZodString>;
|
|
393
446
|
monthlyPriceUsd: z.ZodNullable<z.ZodNumber>;
|
|
394
447
|
credits: z.ZodObject<{
|
|
395
448
|
monthly: z.ZodNumber;
|
|
449
|
+
renewal: z.ZodOptional<z.ZodNumber>;
|
|
396
450
|
extra: z.ZodNumber;
|
|
397
451
|
used: z.ZodNumber;
|
|
398
452
|
remaining: z.ZodNumber;
|
|
399
453
|
period: z.ZodOptional<z.ZodString>;
|
|
400
454
|
}, "strip", z.ZodTypeAny, {
|
|
401
|
-
extra: number;
|
|
402
455
|
monthly: number;
|
|
456
|
+
extra: number;
|
|
403
457
|
used: number;
|
|
404
458
|
remaining: number;
|
|
459
|
+
renewal?: number | undefined;
|
|
405
460
|
period?: string | undefined;
|
|
406
461
|
}, {
|
|
407
|
-
extra: number;
|
|
408
462
|
monthly: number;
|
|
463
|
+
extra: number;
|
|
409
464
|
used: number;
|
|
410
465
|
remaining: number;
|
|
466
|
+
renewal?: number | undefined;
|
|
411
467
|
period?: string | undefined;
|
|
412
468
|
}>;
|
|
413
469
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
@@ -418,28 +474,32 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
418
474
|
periodEndsAt: z.ZodOptional<z.ZodString>;
|
|
419
475
|
daysRemaining: z.ZodNullable<z.ZodNumber>;
|
|
420
476
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
477
|
+
atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
|
|
421
478
|
}, "strip", z.ZodTypeAny, {
|
|
422
479
|
status: string;
|
|
480
|
+
amountUsd: number | null;
|
|
423
481
|
billing: "wallet" | "card";
|
|
424
482
|
switchingToWallet: boolean;
|
|
425
|
-
amountUsd: number | null;
|
|
426
483
|
daysRemaining: number | null;
|
|
427
484
|
cancelAtPeriodEnd: boolean;
|
|
428
485
|
periodEndsAt?: string | undefined;
|
|
486
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
429
487
|
}, {
|
|
430
488
|
status: string;
|
|
489
|
+
amountUsd: number | null;
|
|
431
490
|
billing: "wallet" | "card";
|
|
432
491
|
switchingToWallet: boolean;
|
|
433
|
-
amountUsd: number | null;
|
|
434
492
|
daysRemaining: number | null;
|
|
435
493
|
cancelAtPeriodEnd: boolean;
|
|
436
494
|
periodEndsAt?: string | undefined;
|
|
495
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
437
496
|
}>>;
|
|
438
497
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
439
498
|
teamSessionMode: z.ZodOptional<z.ZodString>;
|
|
440
499
|
skills: z.ZodArray<z.ZodString, "many">;
|
|
441
500
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
442
501
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
502
|
+
lastActivityAt: z.ZodOptional<z.ZodString>;
|
|
443
503
|
} & {
|
|
444
504
|
description: z.ZodOptional<z.ZodString>;
|
|
445
505
|
cover: z.ZodOptional<z.ZodString>;
|
|
@@ -539,17 +599,17 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
539
599
|
filled: z.ZodBoolean;
|
|
540
600
|
requiredMissing: z.ZodBoolean;
|
|
541
601
|
}, "strip", z.ZodTypeAny, {
|
|
542
|
-
title: string;
|
|
543
|
-
optional: boolean;
|
|
544
602
|
key: string;
|
|
603
|
+
optional: boolean;
|
|
604
|
+
title: string;
|
|
545
605
|
oauth: boolean;
|
|
546
606
|
connected: boolean;
|
|
547
607
|
filled: boolean;
|
|
548
608
|
requiredMissing: boolean;
|
|
549
609
|
}, {
|
|
550
|
-
title: string;
|
|
551
|
-
optional: boolean;
|
|
552
610
|
key: string;
|
|
611
|
+
optional: boolean;
|
|
612
|
+
title: string;
|
|
553
613
|
oauth: boolean;
|
|
554
614
|
connected: boolean;
|
|
555
615
|
filled: boolean;
|
|
@@ -560,12 +620,12 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
560
620
|
title: z.ZodString;
|
|
561
621
|
oauth: z.ZodBoolean;
|
|
562
622
|
}, "strip", z.ZodTypeAny, {
|
|
563
|
-
title: string;
|
|
564
623
|
key: string;
|
|
624
|
+
title: string;
|
|
565
625
|
oauth: boolean;
|
|
566
626
|
}, {
|
|
567
|
-
title: string;
|
|
568
627
|
key: string;
|
|
628
|
+
title: string;
|
|
569
629
|
oauth: boolean;
|
|
570
630
|
}>, "many">;
|
|
571
631
|
channels: z.ZodArray<z.ZodObject<{
|
|
@@ -578,22 +638,23 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
578
638
|
}, "strip", z.ZodTypeAny, {
|
|
579
639
|
id: string;
|
|
580
640
|
title: string;
|
|
641
|
+
credentialKey: string;
|
|
581
642
|
enabled: boolean;
|
|
582
|
-
missingFields: string[];
|
|
583
643
|
configured: boolean;
|
|
584
|
-
|
|
644
|
+
missingFields: string[];
|
|
585
645
|
}, {
|
|
586
646
|
id: string;
|
|
587
647
|
title: string;
|
|
648
|
+
credentialKey: string;
|
|
588
649
|
enabled: boolean;
|
|
589
|
-
missingFields: string[];
|
|
590
650
|
configured: boolean;
|
|
591
|
-
|
|
651
|
+
missingFields: string[];
|
|
592
652
|
}>, "many">;
|
|
593
653
|
scheduledTasks: z.ZodArray<z.ZodObject<{
|
|
594
654
|
key: z.ZodString;
|
|
595
655
|
description: z.ZodOptional<z.ZodString>;
|
|
596
656
|
enabled: z.ZodBoolean;
|
|
657
|
+
notWritten: z.ZodOptional<z.ZodBoolean>;
|
|
597
658
|
interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
598
659
|
source: z.ZodOptional<z.ZodEnum<["template", "skill", "user"]>>;
|
|
599
660
|
instructions: z.ZodOptional<z.ZodString>;
|
|
@@ -601,24 +662,27 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
601
662
|
}, "strip", z.ZodTypeAny, {
|
|
602
663
|
key: string;
|
|
603
664
|
enabled: boolean;
|
|
665
|
+
instructions?: string | undefined;
|
|
604
666
|
description?: string | undefined;
|
|
605
|
-
|
|
667
|
+
notWritten?: boolean | undefined;
|
|
606
668
|
interval?: string | null | undefined;
|
|
607
|
-
|
|
669
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
608
670
|
instructionsTruncated?: boolean | undefined;
|
|
609
671
|
}, {
|
|
610
672
|
key: string;
|
|
611
673
|
enabled: boolean;
|
|
674
|
+
instructions?: string | undefined;
|
|
612
675
|
description?: string | undefined;
|
|
613
|
-
|
|
676
|
+
notWritten?: boolean | undefined;
|
|
614
677
|
interval?: string | null | undefined;
|
|
615
|
-
|
|
678
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
616
679
|
instructionsTruncated?: boolean | undefined;
|
|
617
680
|
}>, "many">;
|
|
618
681
|
customInstructions: z.ZodArray<z.ZodObject<{
|
|
619
682
|
key: z.ZodString;
|
|
620
683
|
description: z.ZodOptional<z.ZodString>;
|
|
621
684
|
enabled: z.ZodBoolean;
|
|
685
|
+
notWritten: z.ZodOptional<z.ZodBoolean>;
|
|
622
686
|
interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
623
687
|
source: z.ZodOptional<z.ZodEnum<["template", "skill", "user"]>>;
|
|
624
688
|
instructions: z.ZodOptional<z.ZodString>;
|
|
@@ -626,18 +690,20 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
626
690
|
}, "strip", z.ZodTypeAny, {
|
|
627
691
|
key: string;
|
|
628
692
|
enabled: boolean;
|
|
693
|
+
instructions?: string | undefined;
|
|
629
694
|
description?: string | undefined;
|
|
630
|
-
|
|
695
|
+
notWritten?: boolean | undefined;
|
|
631
696
|
interval?: string | null | undefined;
|
|
632
|
-
|
|
697
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
633
698
|
instructionsTruncated?: boolean | undefined;
|
|
634
699
|
}, {
|
|
635
700
|
key: string;
|
|
636
701
|
enabled: boolean;
|
|
702
|
+
instructions?: string | undefined;
|
|
637
703
|
description?: string | undefined;
|
|
638
|
-
|
|
704
|
+
notWritten?: boolean | undefined;
|
|
639
705
|
interval?: string | null | undefined;
|
|
640
|
-
|
|
706
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
641
707
|
instructionsTruncated?: boolean | undefined;
|
|
642
708
|
}>, "many">;
|
|
643
709
|
queuedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -648,8 +714,9 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
648
714
|
dashboardUrl: z.ZodString;
|
|
649
715
|
}, "strip", z.ZodTypeAny, {
|
|
650
716
|
categories: string[];
|
|
651
|
-
|
|
717
|
+
guid: string;
|
|
652
718
|
title: string;
|
|
719
|
+
status: number | null;
|
|
653
720
|
pricing: {
|
|
654
721
|
starter: {
|
|
655
722
|
priceUsd: number;
|
|
@@ -660,95 +727,99 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
660
727
|
monthlyCredits: number;
|
|
661
728
|
};
|
|
662
729
|
} | null;
|
|
663
|
-
|
|
664
|
-
workspace: "personal" | "team";
|
|
665
|
-
skills: string[];
|
|
666
|
-
channels: {
|
|
667
|
-
id: string;
|
|
668
|
-
title: string;
|
|
669
|
-
enabled: boolean;
|
|
670
|
-
missingFields: string[];
|
|
671
|
-
configured: boolean;
|
|
672
|
-
credentialKey: string;
|
|
673
|
-
}[];
|
|
674
|
-
credentials: {
|
|
675
|
-
title: string;
|
|
676
|
-
optional: boolean;
|
|
677
|
-
key: string;
|
|
678
|
-
oauth: boolean;
|
|
679
|
-
connected: boolean;
|
|
680
|
-
filled: boolean;
|
|
681
|
-
requiredMissing: boolean;
|
|
682
|
-
}[];
|
|
683
|
-
subscription: {
|
|
684
|
-
status: string;
|
|
685
|
-
billing: "wallet" | "card";
|
|
686
|
-
switchingToWallet: boolean;
|
|
687
|
-
amountUsd: number | null;
|
|
688
|
-
daysRemaining: number | null;
|
|
689
|
-
cancelAtPeriodEnd: boolean;
|
|
690
|
-
periodEndsAt?: string | undefined;
|
|
691
|
-
} | null;
|
|
730
|
+
workspace: "team" | "personal";
|
|
692
731
|
credits: {
|
|
693
|
-
extra: number;
|
|
694
732
|
monthly: number;
|
|
733
|
+
extra: number;
|
|
695
734
|
used: number;
|
|
696
735
|
remaining: number;
|
|
736
|
+
renewal?: number | undefined;
|
|
697
737
|
period?: string | undefined;
|
|
698
738
|
};
|
|
699
739
|
template: {
|
|
700
740
|
custom: boolean;
|
|
701
|
-
slug?: string | undefined;
|
|
702
|
-
title?: string | undefined;
|
|
703
741
|
guid?: string | undefined;
|
|
742
|
+
title?: string | undefined;
|
|
743
|
+
slug?: string | undefined;
|
|
704
744
|
};
|
|
705
745
|
statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
|
|
706
746
|
setupRequired: boolean;
|
|
707
747
|
monthlyPriceUsd: number | null;
|
|
748
|
+
subscription: {
|
|
749
|
+
status: string;
|
|
750
|
+
amountUsd: number | null;
|
|
751
|
+
billing: "wallet" | "card";
|
|
752
|
+
switchingToWallet: boolean;
|
|
753
|
+
daysRemaining: number | null;
|
|
754
|
+
cancelAtPeriodEnd: boolean;
|
|
755
|
+
periodEndsAt?: string | undefined;
|
|
756
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
757
|
+
} | null;
|
|
758
|
+
skills: string[];
|
|
708
759
|
extraCreditPacks: {
|
|
709
760
|
priceUsd: number;
|
|
710
761
|
credits: number;
|
|
711
762
|
pack: string;
|
|
712
763
|
}[];
|
|
713
764
|
enabledCommands: string[] | null;
|
|
714
|
-
|
|
765
|
+
credentials: {
|
|
766
|
+
key: string;
|
|
767
|
+
optional: boolean;
|
|
715
768
|
title: string;
|
|
769
|
+
oauth: boolean;
|
|
770
|
+
connected: boolean;
|
|
771
|
+
filled: boolean;
|
|
772
|
+
requiredMissing: boolean;
|
|
773
|
+
}[];
|
|
774
|
+
missingCredentials: {
|
|
716
775
|
key: string;
|
|
776
|
+
title: string;
|
|
717
777
|
oauth: boolean;
|
|
718
778
|
}[];
|
|
779
|
+
channels: {
|
|
780
|
+
id: string;
|
|
781
|
+
title: string;
|
|
782
|
+
credentialKey: string;
|
|
783
|
+
enabled: boolean;
|
|
784
|
+
configured: boolean;
|
|
785
|
+
missingFields: string[];
|
|
786
|
+
}[];
|
|
719
787
|
scheduledTasks: {
|
|
720
788
|
key: string;
|
|
721
789
|
enabled: boolean;
|
|
790
|
+
instructions?: string | undefined;
|
|
722
791
|
description?: string | undefined;
|
|
723
|
-
|
|
792
|
+
notWritten?: boolean | undefined;
|
|
724
793
|
interval?: string | null | undefined;
|
|
725
|
-
|
|
794
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
726
795
|
instructionsTruncated?: boolean | undefined;
|
|
727
796
|
}[];
|
|
728
797
|
customInstructions: {
|
|
729
798
|
key: string;
|
|
730
799
|
enabled: boolean;
|
|
800
|
+
instructions?: string | undefined;
|
|
731
801
|
description?: string | undefined;
|
|
732
|
-
|
|
802
|
+
notWritten?: boolean | undefined;
|
|
733
803
|
interval?: string | null | undefined;
|
|
734
|
-
|
|
804
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
735
805
|
instructionsTruncated?: boolean | undefined;
|
|
736
806
|
}[];
|
|
737
807
|
dashboardUrl: string;
|
|
738
808
|
description?: string | undefined;
|
|
809
|
+
createdAt?: string | undefined;
|
|
739
810
|
models?: {
|
|
740
811
|
chat: string | null;
|
|
741
812
|
cron: string | null;
|
|
742
813
|
voicePrep: string | null;
|
|
743
814
|
voicePostcall: string | null;
|
|
744
815
|
} | undefined;
|
|
745
|
-
createdAt?: string | undefined;
|
|
746
816
|
cover?: string | undefined;
|
|
747
817
|
updatedAt?: string | undefined;
|
|
748
818
|
startedAt?: string | undefined;
|
|
749
819
|
tier?: string | undefined;
|
|
750
820
|
timezone?: string | null | undefined;
|
|
751
821
|
teamSessionMode?: string | undefined;
|
|
822
|
+
lastActivityAt?: string | undefined;
|
|
752
823
|
selectableModels?: {
|
|
753
824
|
slug: string;
|
|
754
825
|
label?: string | undefined;
|
|
@@ -761,8 +832,9 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
761
832
|
erroredAt?: string | undefined;
|
|
762
833
|
}, {
|
|
763
834
|
categories: string[];
|
|
764
|
-
|
|
835
|
+
guid: string;
|
|
765
836
|
title: string;
|
|
837
|
+
status: number | null;
|
|
766
838
|
pricing: {
|
|
767
839
|
starter: {
|
|
768
840
|
priceUsd: number;
|
|
@@ -773,95 +845,99 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
773
845
|
monthlyCredits: number;
|
|
774
846
|
};
|
|
775
847
|
} | null;
|
|
776
|
-
|
|
777
|
-
workspace: "personal" | "team";
|
|
778
|
-
skills: string[];
|
|
779
|
-
channels: {
|
|
780
|
-
id: string;
|
|
781
|
-
title: string;
|
|
782
|
-
enabled: boolean;
|
|
783
|
-
missingFields: string[];
|
|
784
|
-
configured: boolean;
|
|
785
|
-
credentialKey: string;
|
|
786
|
-
}[];
|
|
787
|
-
credentials: {
|
|
788
|
-
title: string;
|
|
789
|
-
optional: boolean;
|
|
790
|
-
key: string;
|
|
791
|
-
oauth: boolean;
|
|
792
|
-
connected: boolean;
|
|
793
|
-
filled: boolean;
|
|
794
|
-
requiredMissing: boolean;
|
|
795
|
-
}[];
|
|
796
|
-
subscription: {
|
|
797
|
-
status: string;
|
|
798
|
-
billing: "wallet" | "card";
|
|
799
|
-
switchingToWallet: boolean;
|
|
800
|
-
amountUsd: number | null;
|
|
801
|
-
daysRemaining: number | null;
|
|
802
|
-
cancelAtPeriodEnd: boolean;
|
|
803
|
-
periodEndsAt?: string | undefined;
|
|
804
|
-
} | null;
|
|
848
|
+
workspace: "team" | "personal";
|
|
805
849
|
credits: {
|
|
806
|
-
extra: number;
|
|
807
850
|
monthly: number;
|
|
851
|
+
extra: number;
|
|
808
852
|
used: number;
|
|
809
853
|
remaining: number;
|
|
854
|
+
renewal?: number | undefined;
|
|
810
855
|
period?: string | undefined;
|
|
811
856
|
};
|
|
812
857
|
template: {
|
|
813
858
|
custom: boolean;
|
|
814
|
-
slug?: string | undefined;
|
|
815
|
-
title?: string | undefined;
|
|
816
859
|
guid?: string | undefined;
|
|
860
|
+
title?: string | undefined;
|
|
861
|
+
slug?: string | undefined;
|
|
817
862
|
};
|
|
818
863
|
statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
|
|
819
864
|
setupRequired: boolean;
|
|
820
865
|
monthlyPriceUsd: number | null;
|
|
866
|
+
subscription: {
|
|
867
|
+
status: string;
|
|
868
|
+
amountUsd: number | null;
|
|
869
|
+
billing: "wallet" | "card";
|
|
870
|
+
switchingToWallet: boolean;
|
|
871
|
+
daysRemaining: number | null;
|
|
872
|
+
cancelAtPeriodEnd: boolean;
|
|
873
|
+
periodEndsAt?: string | undefined;
|
|
874
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
875
|
+
} | null;
|
|
876
|
+
skills: string[];
|
|
821
877
|
extraCreditPacks: {
|
|
822
878
|
priceUsd: number;
|
|
823
879
|
credits: number;
|
|
824
880
|
pack: string;
|
|
825
881
|
}[];
|
|
826
882
|
enabledCommands: string[] | null;
|
|
827
|
-
|
|
883
|
+
credentials: {
|
|
884
|
+
key: string;
|
|
885
|
+
optional: boolean;
|
|
828
886
|
title: string;
|
|
887
|
+
oauth: boolean;
|
|
888
|
+
connected: boolean;
|
|
889
|
+
filled: boolean;
|
|
890
|
+
requiredMissing: boolean;
|
|
891
|
+
}[];
|
|
892
|
+
missingCredentials: {
|
|
829
893
|
key: string;
|
|
894
|
+
title: string;
|
|
830
895
|
oauth: boolean;
|
|
831
896
|
}[];
|
|
897
|
+
channels: {
|
|
898
|
+
id: string;
|
|
899
|
+
title: string;
|
|
900
|
+
credentialKey: string;
|
|
901
|
+
enabled: boolean;
|
|
902
|
+
configured: boolean;
|
|
903
|
+
missingFields: string[];
|
|
904
|
+
}[];
|
|
832
905
|
scheduledTasks: {
|
|
833
906
|
key: string;
|
|
834
907
|
enabled: boolean;
|
|
908
|
+
instructions?: string | undefined;
|
|
835
909
|
description?: string | undefined;
|
|
836
|
-
|
|
910
|
+
notWritten?: boolean | undefined;
|
|
837
911
|
interval?: string | null | undefined;
|
|
838
|
-
|
|
912
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
839
913
|
instructionsTruncated?: boolean | undefined;
|
|
840
914
|
}[];
|
|
841
915
|
customInstructions: {
|
|
842
916
|
key: string;
|
|
843
917
|
enabled: boolean;
|
|
918
|
+
instructions?: string | undefined;
|
|
844
919
|
description?: string | undefined;
|
|
845
|
-
|
|
920
|
+
notWritten?: boolean | undefined;
|
|
846
921
|
interval?: string | null | undefined;
|
|
847
|
-
|
|
922
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
848
923
|
instructionsTruncated?: boolean | undefined;
|
|
849
924
|
}[];
|
|
850
925
|
dashboardUrl: string;
|
|
851
926
|
description?: string | undefined;
|
|
927
|
+
createdAt?: string | undefined;
|
|
852
928
|
models?: {
|
|
853
929
|
chat: string | null;
|
|
854
930
|
cron: string | null;
|
|
855
931
|
voicePrep: string | null;
|
|
856
932
|
voicePostcall: string | null;
|
|
857
933
|
} | undefined;
|
|
858
|
-
createdAt?: string | undefined;
|
|
859
934
|
cover?: string | undefined;
|
|
860
935
|
updatedAt?: string | undefined;
|
|
861
936
|
startedAt?: string | undefined;
|
|
862
937
|
tier?: string | undefined;
|
|
863
938
|
timezone?: string | null | undefined;
|
|
864
939
|
teamSessionMode?: string | undefined;
|
|
940
|
+
lastActivityAt?: string | undefined;
|
|
865
941
|
selectableModels?: {
|
|
866
942
|
slug: string;
|
|
867
943
|
label?: string | undefined;
|
|
@@ -889,34 +965,37 @@ export declare const deployedAgentSchema: z.ZodObject<{
|
|
|
889
965
|
title: z.ZodOptional<z.ZodString>;
|
|
890
966
|
}, "strip", z.ZodTypeAny, {
|
|
891
967
|
custom: boolean;
|
|
892
|
-
slug?: string | undefined;
|
|
893
|
-
title?: string | undefined;
|
|
894
968
|
guid?: string | undefined;
|
|
969
|
+
title?: string | undefined;
|
|
970
|
+
slug?: string | undefined;
|
|
895
971
|
}, {
|
|
896
972
|
custom: boolean;
|
|
897
|
-
slug?: string | undefined;
|
|
898
|
-
title?: string | undefined;
|
|
899
973
|
guid?: string | undefined;
|
|
974
|
+
title?: string | undefined;
|
|
975
|
+
slug?: string | undefined;
|
|
900
976
|
}>;
|
|
901
977
|
tier: z.ZodOptional<z.ZodString>;
|
|
902
978
|
monthlyPriceUsd: z.ZodNullable<z.ZodNumber>;
|
|
903
979
|
credits: z.ZodObject<{
|
|
904
980
|
monthly: z.ZodNumber;
|
|
981
|
+
renewal: z.ZodOptional<z.ZodNumber>;
|
|
905
982
|
extra: z.ZodNumber;
|
|
906
983
|
used: z.ZodNumber;
|
|
907
984
|
remaining: z.ZodNumber;
|
|
908
985
|
period: z.ZodOptional<z.ZodString>;
|
|
909
986
|
}, "strip", z.ZodTypeAny, {
|
|
910
|
-
extra: number;
|
|
911
987
|
monthly: number;
|
|
988
|
+
extra: number;
|
|
912
989
|
used: number;
|
|
913
990
|
remaining: number;
|
|
991
|
+
renewal?: number | undefined;
|
|
914
992
|
period?: string | undefined;
|
|
915
993
|
}, {
|
|
916
|
-
extra: number;
|
|
917
994
|
monthly: number;
|
|
995
|
+
extra: number;
|
|
918
996
|
used: number;
|
|
919
997
|
remaining: number;
|
|
998
|
+
renewal?: number | undefined;
|
|
920
999
|
period?: string | undefined;
|
|
921
1000
|
}>;
|
|
922
1001
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
@@ -927,40 +1006,44 @@ export declare const deployedAgentSchema: z.ZodObject<{
|
|
|
927
1006
|
periodEndsAt: z.ZodOptional<z.ZodString>;
|
|
928
1007
|
daysRemaining: z.ZodNullable<z.ZodNumber>;
|
|
929
1008
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
1009
|
+
atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
|
|
930
1010
|
}, "strip", z.ZodTypeAny, {
|
|
931
1011
|
status: string;
|
|
1012
|
+
amountUsd: number | null;
|
|
932
1013
|
billing: "wallet" | "card";
|
|
933
1014
|
switchingToWallet: boolean;
|
|
934
|
-
amountUsd: number | null;
|
|
935
1015
|
daysRemaining: number | null;
|
|
936
1016
|
cancelAtPeriodEnd: boolean;
|
|
937
1017
|
periodEndsAt?: string | undefined;
|
|
1018
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
938
1019
|
}, {
|
|
939
1020
|
status: string;
|
|
1021
|
+
amountUsd: number | null;
|
|
940
1022
|
billing: "wallet" | "card";
|
|
941
1023
|
switchingToWallet: boolean;
|
|
942
|
-
amountUsd: number | null;
|
|
943
1024
|
daysRemaining: number | null;
|
|
944
1025
|
cancelAtPeriodEnd: boolean;
|
|
945
1026
|
periodEndsAt?: string | undefined;
|
|
1027
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
946
1028
|
}>>;
|
|
947
1029
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
948
1030
|
teamSessionMode: z.ZodOptional<z.ZodString>;
|
|
949
1031
|
skills: z.ZodArray<z.ZodString, "many">;
|
|
950
1032
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
951
1033
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
lastActivityAt: z.ZodOptional<z.ZodString>;
|
|
952
1035
|
} & {
|
|
953
1036
|
missingCredentials: z.ZodArray<z.ZodObject<{
|
|
954
1037
|
key: z.ZodString;
|
|
955
1038
|
title: z.ZodString;
|
|
956
1039
|
oauth: z.ZodBoolean;
|
|
957
1040
|
}, "strip", z.ZodTypeAny, {
|
|
958
|
-
title: string;
|
|
959
1041
|
key: string;
|
|
1042
|
+
title: string;
|
|
960
1043
|
oauth: boolean;
|
|
961
1044
|
}, {
|
|
962
|
-
title: string;
|
|
963
1045
|
key: string;
|
|
1046
|
+
title: string;
|
|
964
1047
|
oauth: boolean;
|
|
965
1048
|
}>, "many">;
|
|
966
1049
|
channels: z.ZodArray<z.ZodObject<{
|
|
@@ -973,119 +1056,125 @@ export declare const deployedAgentSchema: z.ZodObject<{
|
|
|
973
1056
|
}, "strip", z.ZodTypeAny, {
|
|
974
1057
|
id: string;
|
|
975
1058
|
title: string;
|
|
1059
|
+
credentialKey: string;
|
|
976
1060
|
enabled: boolean;
|
|
977
|
-
missingFields: string[];
|
|
978
1061
|
configured: boolean;
|
|
979
|
-
|
|
1062
|
+
missingFields: string[];
|
|
980
1063
|
}, {
|
|
981
1064
|
id: string;
|
|
982
1065
|
title: string;
|
|
1066
|
+
credentialKey: string;
|
|
983
1067
|
enabled: boolean;
|
|
984
|
-
missingFields: string[];
|
|
985
1068
|
configured: boolean;
|
|
986
|
-
|
|
1069
|
+
missingFields: string[];
|
|
987
1070
|
}>, "many">;
|
|
988
1071
|
dashboardUrl: z.ZodString;
|
|
989
1072
|
}, "strip", z.ZodTypeAny, {
|
|
990
|
-
status: number | null;
|
|
991
|
-
title: string;
|
|
992
1073
|
guid: string;
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
id: string;
|
|
997
|
-
title: string;
|
|
998
|
-
enabled: boolean;
|
|
999
|
-
missingFields: string[];
|
|
1000
|
-
configured: boolean;
|
|
1001
|
-
credentialKey: string;
|
|
1002
|
-
}[];
|
|
1003
|
-
subscription: {
|
|
1004
|
-
status: string;
|
|
1005
|
-
billing: "wallet" | "card";
|
|
1006
|
-
switchingToWallet: boolean;
|
|
1007
|
-
amountUsd: number | null;
|
|
1008
|
-
daysRemaining: number | null;
|
|
1009
|
-
cancelAtPeriodEnd: boolean;
|
|
1010
|
-
periodEndsAt?: string | undefined;
|
|
1011
|
-
} | null;
|
|
1074
|
+
title: string;
|
|
1075
|
+
status: number | null;
|
|
1076
|
+
workspace: "team" | "personal";
|
|
1012
1077
|
credits: {
|
|
1013
|
-
extra: number;
|
|
1014
1078
|
monthly: number;
|
|
1079
|
+
extra: number;
|
|
1015
1080
|
used: number;
|
|
1016
1081
|
remaining: number;
|
|
1082
|
+
renewal?: number | undefined;
|
|
1017
1083
|
period?: string | undefined;
|
|
1018
1084
|
};
|
|
1019
1085
|
template: {
|
|
1020
1086
|
custom: boolean;
|
|
1021
|
-
slug?: string | undefined;
|
|
1022
|
-
title?: string | undefined;
|
|
1023
1087
|
guid?: string | undefined;
|
|
1088
|
+
title?: string | undefined;
|
|
1089
|
+
slug?: string | undefined;
|
|
1024
1090
|
};
|
|
1025
1091
|
statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
|
|
1026
1092
|
setupRequired: boolean;
|
|
1027
1093
|
monthlyPriceUsd: number | null;
|
|
1094
|
+
subscription: {
|
|
1095
|
+
status: string;
|
|
1096
|
+
amountUsd: number | null;
|
|
1097
|
+
billing: "wallet" | "card";
|
|
1098
|
+
switchingToWallet: boolean;
|
|
1099
|
+
daysRemaining: number | null;
|
|
1100
|
+
cancelAtPeriodEnd: boolean;
|
|
1101
|
+
periodEndsAt?: string | undefined;
|
|
1102
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
1103
|
+
} | null;
|
|
1104
|
+
skills: string[];
|
|
1028
1105
|
missingCredentials: {
|
|
1029
|
-
title: string;
|
|
1030
1106
|
key: string;
|
|
1107
|
+
title: string;
|
|
1031
1108
|
oauth: boolean;
|
|
1032
1109
|
}[];
|
|
1110
|
+
channels: {
|
|
1111
|
+
id: string;
|
|
1112
|
+
title: string;
|
|
1113
|
+
credentialKey: string;
|
|
1114
|
+
enabled: boolean;
|
|
1115
|
+
configured: boolean;
|
|
1116
|
+
missingFields: string[];
|
|
1117
|
+
}[];
|
|
1033
1118
|
dashboardUrl: string;
|
|
1034
1119
|
createdAt?: string | undefined;
|
|
1035
1120
|
updatedAt?: string | undefined;
|
|
1036
1121
|
tier?: string | undefined;
|
|
1037
1122
|
timezone?: string | null | undefined;
|
|
1038
1123
|
teamSessionMode?: string | undefined;
|
|
1124
|
+
lastActivityAt?: string | undefined;
|
|
1039
1125
|
}, {
|
|
1040
|
-
status: number | null;
|
|
1041
|
-
title: string;
|
|
1042
1126
|
guid: string;
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
id: string;
|
|
1047
|
-
title: string;
|
|
1048
|
-
enabled: boolean;
|
|
1049
|
-
missingFields: string[];
|
|
1050
|
-
configured: boolean;
|
|
1051
|
-
credentialKey: string;
|
|
1052
|
-
}[];
|
|
1053
|
-
subscription: {
|
|
1054
|
-
status: string;
|
|
1055
|
-
billing: "wallet" | "card";
|
|
1056
|
-
switchingToWallet: boolean;
|
|
1057
|
-
amountUsd: number | null;
|
|
1058
|
-
daysRemaining: number | null;
|
|
1059
|
-
cancelAtPeriodEnd: boolean;
|
|
1060
|
-
periodEndsAt?: string | undefined;
|
|
1061
|
-
} | null;
|
|
1127
|
+
title: string;
|
|
1128
|
+
status: number | null;
|
|
1129
|
+
workspace: "team" | "personal";
|
|
1062
1130
|
credits: {
|
|
1063
|
-
extra: number;
|
|
1064
1131
|
monthly: number;
|
|
1132
|
+
extra: number;
|
|
1065
1133
|
used: number;
|
|
1066
1134
|
remaining: number;
|
|
1135
|
+
renewal?: number | undefined;
|
|
1067
1136
|
period?: string | undefined;
|
|
1068
1137
|
};
|
|
1069
1138
|
template: {
|
|
1070
1139
|
custom: boolean;
|
|
1071
|
-
slug?: string | undefined;
|
|
1072
|
-
title?: string | undefined;
|
|
1073
1140
|
guid?: string | undefined;
|
|
1141
|
+
title?: string | undefined;
|
|
1142
|
+
slug?: string | undefined;
|
|
1074
1143
|
};
|
|
1075
1144
|
statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
|
|
1076
1145
|
setupRequired: boolean;
|
|
1077
1146
|
monthlyPriceUsd: number | null;
|
|
1147
|
+
subscription: {
|
|
1148
|
+
status: string;
|
|
1149
|
+
amountUsd: number | null;
|
|
1150
|
+
billing: "wallet" | "card";
|
|
1151
|
+
switchingToWallet: boolean;
|
|
1152
|
+
daysRemaining: number | null;
|
|
1153
|
+
cancelAtPeriodEnd: boolean;
|
|
1154
|
+
periodEndsAt?: string | undefined;
|
|
1155
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
1156
|
+
} | null;
|
|
1157
|
+
skills: string[];
|
|
1078
1158
|
missingCredentials: {
|
|
1079
|
-
title: string;
|
|
1080
1159
|
key: string;
|
|
1160
|
+
title: string;
|
|
1081
1161
|
oauth: boolean;
|
|
1082
1162
|
}[];
|
|
1163
|
+
channels: {
|
|
1164
|
+
id: string;
|
|
1165
|
+
title: string;
|
|
1166
|
+
credentialKey: string;
|
|
1167
|
+
enabled: boolean;
|
|
1168
|
+
configured: boolean;
|
|
1169
|
+
missingFields: string[];
|
|
1170
|
+
}[];
|
|
1083
1171
|
dashboardUrl: string;
|
|
1084
1172
|
createdAt?: string | undefined;
|
|
1085
1173
|
updatedAt?: string | undefined;
|
|
1086
1174
|
tier?: string | undefined;
|
|
1087
1175
|
timezone?: string | null | undefined;
|
|
1088
1176
|
teamSessionMode?: string | undefined;
|
|
1177
|
+
lastActivityAt?: string | undefined;
|
|
1089
1178
|
}>;
|
|
1090
1179
|
export type DeployedAgent = z.infer<typeof deployedAgentSchema>;
|
|
1091
1180
|
export declare function toDeployedAgent(agent: AgentDetail): DeployedAgent;
|
|
@@ -1094,24 +1183,44 @@ export declare function toAgentSummary(row: Record<string, unknown>): AgentSumma
|
|
|
1094
1183
|
/** Slugs a deployed agent may switch its chat, cron or voice model to. */
|
|
1095
1184
|
export declare function selectableModelSlugs(row: Record<string, unknown>): Set<string>;
|
|
1096
1185
|
/**
|
|
1097
|
-
* The
|
|
1098
|
-
*
|
|
1099
|
-
*
|
|
1186
|
+
* The keys of the credentials an agent's setup waits for: a credential with a
|
|
1187
|
+
* required field empty, a required credential that holds no value yet, or a
|
|
1188
|
+
* required sign-in that is not connected. A custom build's setup waits only for
|
|
1189
|
+
* the main credential of each active skill, which skillsmeta lists. Its chat
|
|
1190
|
+
* channels are never among them.
|
|
1191
|
+
*/
|
|
1192
|
+
export declare function credentialKeysSetupWaitsFor(row: Record<string, unknown>): Set<string>;
|
|
1193
|
+
/**
|
|
1194
|
+
* The full view of one deployed agent (Detail, Deploy and Update rows): its
|
|
1195
|
+
* status, plan, prices, credits and settings, and the state of each
|
|
1196
|
+
* credential and channel.
|
|
1100
1197
|
*/
|
|
1101
1198
|
export declare function toAgentDetail(row: Record<string, unknown>): AgentDetail;
|
|
1102
|
-
export declare function formatSubscriptionLine(subscription: AgentSubscription | null): string;
|
|
1103
|
-
|
|
1104
|
-
export declare function
|
|
1199
|
+
export declare function formatSubscriptionLine(subscription: AgentSubscription | null, plainMember?: boolean): string;
|
|
1200
|
+
/** Without an active plan, an agent starts only on the extra credits it has left. */
|
|
1201
|
+
export declare function startNeedsPlan(agent: Pick<AgentSummary, 'subscription' | 'credits'>): boolean;
|
|
1202
|
+
/** An agent's title inside a line of this server's own text: on one line, in a code span it cannot close. */
|
|
1203
|
+
export declare function agentTitleSpan(title: string): string;
|
|
1204
|
+
export declare function formatAgentSummaryLines(agent: AgentSummary, plainMember?: boolean): string[];
|
|
1205
|
+
/** A scheduled task as a list line: key, on or off, schedule and description, then shortenedNote if its text was cut. */
|
|
1206
|
+
export declare function formatScheduledTaskLine(task: AgentTask, shortenedNote?: string): string;
|
|
1207
|
+
/** A custom instruction as a list line: key, on or off and description, then shortenedNote if its text was cut. */
|
|
1208
|
+
export declare function formatCustomInstructionLine(task: AgentTask, shortenedNote?: string): string;
|
|
1209
|
+
/** Each model with its credits per 1M input and output tokens, separated by semicolons. */
|
|
1210
|
+
export declare function formatModelRates(models: readonly SelectableModel[]): string;
|
|
1211
|
+
export declare function formatAgentDetail(agent: AgentDetail, plainMember?: boolean): string;
|
|
1105
1212
|
export declare function normalizeCustomSkillKey(input: string, interval?: string | null): string | null;
|
|
1106
1213
|
export declare function isGuid(value: string): boolean;
|
|
1107
1214
|
export interface AgentApiClient {
|
|
1108
1215
|
post<T = Record<string, unknown>>(path: string, body?: Record<string, unknown>, signal?: AbortSignal): Promise<T>;
|
|
1109
1216
|
}
|
|
1110
|
-
/**
|
|
1217
|
+
/** Reads one agent's Detail row; tool results are built from it with toAgentDetail or toAgentSummary. */
|
|
1111
1218
|
export declare function readAgentDetail(client: AgentApiClient, guid: string, signal?: AbortSignal): Promise<Record<string, unknown>>;
|
|
1112
1219
|
export declare function agentPollInterval(elapsedMs: number): number;
|
|
1113
1220
|
export interface AgentWaitResult {
|
|
1114
1221
|
row: Record<string, unknown>;
|
|
1222
|
+
/** False when no read succeeded, so row is the fallback row passed in. */
|
|
1223
|
+
fresh: boolean;
|
|
1115
1224
|
settled: boolean;
|
|
1116
1225
|
elapsedMs: number;
|
|
1117
1226
|
}
|
|
@@ -1122,19 +1231,45 @@ export interface NextAction {
|
|
|
1122
1231
|
arguments: Record<string, unknown>;
|
|
1123
1232
|
reason: string;
|
|
1124
1233
|
}
|
|
1234
|
+
/** The credential that holds the Wiro project an agent runs models with. */
|
|
1235
|
+
export declare const WIRO_PROJECT_CREDENTIAL = "wiro";
|
|
1236
|
+
/** The call that connects a Wiro project to an agent. It shows the project first; lead says why it comes now. */
|
|
1237
|
+
export declare function bindProjectStep(agentGuid: string, lead: string): NextAction;
|
|
1125
1238
|
/** The call that starts on the first missing credential, with every argument it needs. */
|
|
1126
1239
|
export declare function missingCredentialStep(agent: Pick<AgentDetail, 'guid' | 'missingCredentials'>): NextAction | undefined;
|
|
1127
|
-
/**
|
|
1128
|
-
|
|
1129
|
-
|
|
1240
|
+
/**
|
|
1241
|
+
* The most useful next call for an agent in this state, if any. For a team
|
|
1242
|
+
* member without admin rights it is only the wait for a status that moves on
|
|
1243
|
+
* by itself.
|
|
1244
|
+
*/
|
|
1245
|
+
export declare function nextStepForAgent(agent: AgentDetail, waitSeconds: number, plainMember?: boolean): NextAction | undefined;
|
|
1246
|
+
/** Whether a refusal says the wallet could not be read, which says nothing about what it holds. */
|
|
1247
|
+
export declare function isWalletNotRead(error: unknown): boolean;
|
|
1248
|
+
/** The words after such a refusal. No funds are asked for: the wallet may hold plenty. */
|
|
1249
|
+
export declare const WALLET_NOT_READ_NOTE = "Wiro could not read the balance just now. That is not a low balance, and nothing was charged. Try again in a moment; if it keeps saying so, get_account shows the wallet.";
|
|
1250
|
+
/** Whether a result:false answer is one of the refusals known to leave the wallet untouched. */
|
|
1130
1251
|
export declare function isPreChargeRefusal(error: unknown): boolean;
|
|
1252
|
+
/**
|
|
1253
|
+
* Whether a result:false answer says what the wallet paid. Its sentence is the
|
|
1254
|
+
* whole outcome: it is shown as it is, and the call is not repeated.
|
|
1255
|
+
*/
|
|
1256
|
+
export declare function isKnownPaidOutcome(error: unknown): boolean;
|
|
1257
|
+
/**
|
|
1258
|
+
* Whether a result:false answer carries code 110. Its answer is the whole outcome:
|
|
1259
|
+
* the change is reported as failed, what the agent and the wallet show is read by
|
|
1260
|
+
* hand, and the call is not repeated.
|
|
1261
|
+
*/
|
|
1262
|
+
export declare function isKnownFailedChange(error: unknown): boolean;
|
|
1131
1263
|
/**
|
|
1132
1264
|
* After a paid request was sent, whether it may still have gone through.
|
|
1133
|
-
* Only the known refusals
|
|
1134
|
-
*
|
|
1135
|
-
* leaves it open.
|
|
1265
|
+
* Only the known refusals, an answer that says what the wallet paid or carries
|
|
1266
|
+
* code 110, and client errors (other than a timeout or rate limit) settle it; any
|
|
1267
|
+
* other answer, a network failure or a server error leaves it open.
|
|
1136
1268
|
*/
|
|
1137
1269
|
export declare function outcomeUnknown(error: unknown): boolean;
|
|
1138
|
-
/** Advice for a status reached after a start, renew or deploy. */
|
|
1139
|
-
export declare function settledStatusAdvice(status: number | null): string;
|
|
1270
|
+
/** Advice for a status reached after a start, renew or deploy. With the agent, a failed agent without a plan or extra credits is sent to billing. */
|
|
1271
|
+
export declare function settledStatusAdvice(status: number | null, plainMember?: boolean, agent?: Pick<AgentSummary, 'subscription' | 'credits'>): string;
|
|
1272
|
+
/** Advice for a read, which cannot tell whether a start came first: a stopped agent gets what holds now. */
|
|
1273
|
+
export declare function readStatusAdvice(agent: Pick<AgentSummary, 'status' | 'subscription' | 'credits'>, plainMember?: boolean): string;
|
|
1274
|
+
export {};
|
|
1140
1275
|
//# sourceMappingURL=user-agent.d.ts.map
|