@wiro-ai/wiro-mcp 1.4.0 → 1.4.1
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 +12 -2
- package/dist/client.d.ts +6 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +88 -5
- package/dist/client.js.map +1 -1
- package/dist/instructions.d.ts.map +1 -1
- package/dist/instructions.js +20 -16
- package/dist/instructions.js.map +1 -1
- package/dist/playbooks.d.ts.map +1 -1
- package/dist/playbooks.js +19 -17
- package/dist/playbooks.js.map +1 -1
- package/dist/prompts.js +1 -1
- 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 +77 -21
- package/dist/tools/apply-agent-skills.js.map +1 -1
- package/dist/tools/connect-agent-oauth.js +5 -5
- 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 +28 -13
- package/dist/tools/control-agent.js.map +1 -1
- package/dist/tools/create-workflow.d.ts +6 -6
- package/dist/tools/create-workflow.d.ts.map +1 -1
- package/dist/tools/create-workflow.js +1 -2
- package/dist/tools/create-workflow.js.map +1 -1
- package/dist/tools/delete-agent-session.js +2 -2
- 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 +2 -1
- package/dist/tools/delete-agent.js.map +1 -1
- package/dist/tools/delete-workflow.js +1 -1
- 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 +17 -9
- package/dist/tools/deploy-agent.js.map +1 -1
- package/dist/tools/get-account.d.ts.map +1 -1
- package/dist/tools/get-account.js +22 -20
- package/dist/tools/get-account.js.map +1 -1
- package/dist/tools/get-agent-activity.js +2 -2
- 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 +10 -6
- package/dist/tools/get-agent-conversation.js.map +1 -1
- package/dist/tools/get-agent-template.d.ts.map +1 -1
- package/dist/tools/get-agent-template.js +23 -2
- 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 +4 -2
- 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 +45 -6
- package/dist/tools/get-my-agent.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 +26 -5
- 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 +22 -6
- 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 +8 -2
- package/dist/tools/get-workflow.js.map +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/list-my-agents.d.ts.map +1 -1
- package/dist/tools/list-my-agents.js +4 -1
- package/dist/tools/list-my-agents.js.map +1 -1
- package/dist/tools/manage-agent-billing.d.ts.map +1 -1
- package/dist/tools/manage-agent-billing.js +53 -29
- 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 +4 -10
- package/dist/tools/manage-agent-custom-skill.js.map +1 -1
- package/dist/tools/run-model.js +2 -2
- package/dist/tools/save-workflow-from-agent.d.ts.map +1 -1
- package/dist/tools/save-workflow-from-agent.js +5 -8
- package/dist/tools/save-workflow-from-agent.js.map +1 -1
- package/dist/tools/schemas.d.ts +130 -113
- package/dist/tools/schemas.d.ts.map +1 -1
- package/dist/tools/schemas.js +9 -3
- package/dist/tools/schemas.js.map +1 -1
- package/dist/tools/search-models.d.ts.map +1 -1
- package/dist/tools/search-models.js +4 -1
- package/dist/tools/search-models.js.map +1 -1
- package/dist/tools/send-agent-message.js +2 -2
- 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 +16 -5
- 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 +5 -4
- package/dist/tools/update-agent.js.map +1 -1
- package/dist/tools/update-workflow.d.ts +6 -6
- package/dist/tools/upload-file.d.ts.map +1 -1
- package/dist/tools/upload-file.js +10 -6
- 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 +20 -2
- package/dist/tools/wait-for-task.js.map +1 -1
- package/dist/tools/wait-for-workflow-run.d.ts +15 -15
- 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 +139 -139
- package/dist/utils/agent-catalog.d.ts.map +1 -1
- package/dist/utils/agent-catalog.js +6 -7
- package/dist/utils/agent-catalog.js.map +1 -1
- package/dist/utils/agent-config.d.ts +4 -2
- package/dist/utils/agent-config.d.ts.map +1 -1
- package/dist/utils/agent-config.js +12 -3
- package/dist/utils/agent-config.js.map +1 -1
- package/dist/utils/agent-message.d.ts +8 -11
- package/dist/utils/agent-message.d.ts.map +1 -1
- package/dist/utils/agent-message.js +5 -8
- package/dist/utils/agent-message.js.map +1 -1
- package/dist/utils/agent-targets.d.ts +1 -1
- package/dist/utils/agent-targets.d.ts.map +1 -1
- package/dist/utils/agent-targets.js +20 -16
- package/dist/utils/agent-targets.js.map +1 -1
- package/dist/utils/agent-turns.d.ts +12 -12
- package/dist/utils/agent-turns.d.ts.map +1 -1
- package/dist/utils/agent-turns.js +58 -21
- package/dist/utils/agent-turns.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 +422 -69
- 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 +23 -1
- package/dist/utils/json-schema-dialect.js.map +1 -1
- 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.js +4 -4
- package/dist/utils/studio-runs.js.map +1 -1
- package/dist/utils/user-agent.d.ts +283 -224
- package/dist/utils/user-agent.d.ts.map +1 -1
- package/dist/utils/user-agent.js +149 -54
- package/dist/utils/user-agent.js.map +1 -1
- package/dist/utils/workflow-agent.d.ts +4 -4
- package/dist/utils/workflow-save.d.ts +1 -4
- package/dist/utils/workflow-save.d.ts.map +1 -1
- package/dist/utils/workflow-save.js +8 -14
- package/dist/utils/workflow-save.js.map +1 -1
- package/dist/utils/workflow.d.ts +53 -48
- package/dist/utils/workflow.d.ts.map +1 -1
- package/dist/utils/workflow.js +108 -9
- package/dist/utils/workflow.js.map +1 -1
- package/dist/utils/workspace.d.ts +38 -0
- package/dist/utils/workspace.d.ts.map +1 -0
- package/dist/utils/workspace.js +90 -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,6 +82,7 @@ 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;
|
|
85
88
|
billing: "wallet" | "card";
|
|
@@ -88,6 +91,7 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
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;
|
|
93
97
|
billing: "wallet" | "card";
|
|
@@ -96,9 +100,17 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
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. Any other card
|
|
110
|
+
* plan is known only when the row carries its card state (cardEnds).
|
|
111
|
+
*/
|
|
112
|
+
export declare function planEndsWithPeriod(subscription: Record<string, unknown>, cardEnds?: unknown): boolean | null;
|
|
113
|
+
export declare function toSubscription(value: unknown, cardEnds?: unknown): AgentSubscription | null;
|
|
102
114
|
/** How a new charge for this plan is paid right now. */
|
|
103
115
|
export declare function chargeRoute(subscription: unknown): 'wallet' | 'card' | null;
|
|
104
116
|
export declare const creditsSchema: z.ZodObject<{
|
|
@@ -108,14 +120,14 @@ export declare const creditsSchema: z.ZodObject<{
|
|
|
108
120
|
remaining: z.ZodNumber;
|
|
109
121
|
period: z.ZodOptional<z.ZodString>;
|
|
110
122
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
extra: number;
|
|
112
123
|
monthly: number;
|
|
124
|
+
extra: number;
|
|
113
125
|
used: number;
|
|
114
126
|
remaining: number;
|
|
115
127
|
period?: string | undefined;
|
|
116
128
|
}, {
|
|
117
|
-
extra: number;
|
|
118
129
|
monthly: number;
|
|
130
|
+
extra: number;
|
|
119
131
|
used: number;
|
|
120
132
|
remaining: number;
|
|
121
133
|
period?: string | undefined;
|
|
@@ -134,24 +146,24 @@ export declare const credentialStatusSchema: z.ZodObject<{
|
|
|
134
146
|
filled: z.ZodBoolean;
|
|
135
147
|
requiredMissing: z.ZodBoolean;
|
|
136
148
|
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
title: string;
|
|
138
|
-
optional: boolean;
|
|
139
149
|
key: string;
|
|
150
|
+
optional: boolean;
|
|
151
|
+
title: string;
|
|
140
152
|
oauth: boolean;
|
|
141
153
|
connected: boolean;
|
|
142
154
|
filled: boolean;
|
|
143
155
|
requiredMissing: boolean;
|
|
144
156
|
}, {
|
|
145
|
-
title: string;
|
|
146
|
-
optional: boolean;
|
|
147
157
|
key: string;
|
|
158
|
+
optional: boolean;
|
|
159
|
+
title: string;
|
|
148
160
|
oauth: boolean;
|
|
149
161
|
connected: boolean;
|
|
150
162
|
filled: boolean;
|
|
151
163
|
requiredMissing: boolean;
|
|
152
164
|
}>;
|
|
153
165
|
export type CredentialStatus = z.infer<typeof credentialStatusSchema>;
|
|
154
|
-
/**
|
|
166
|
+
/** The state of each credential: whether it is filled, connected or missing. */
|
|
155
167
|
export declare function summarizeCredentials(credentials: unknown, skipKeys?: Set<string>): CredentialStatus[];
|
|
156
168
|
export declare const channelStatusSchema: z.ZodObject<{
|
|
157
169
|
id: z.ZodString;
|
|
@@ -163,17 +175,17 @@ export declare const channelStatusSchema: z.ZodObject<{
|
|
|
163
175
|
}, "strip", z.ZodTypeAny, {
|
|
164
176
|
id: string;
|
|
165
177
|
title: string;
|
|
178
|
+
credentialKey: string;
|
|
166
179
|
enabled: boolean;
|
|
167
|
-
missingFields: string[];
|
|
168
180
|
configured: boolean;
|
|
169
|
-
|
|
181
|
+
missingFields: string[];
|
|
170
182
|
}, {
|
|
171
183
|
id: string;
|
|
172
184
|
title: string;
|
|
185
|
+
credentialKey: string;
|
|
173
186
|
enabled: boolean;
|
|
174
|
-
missingFields: string[];
|
|
175
187
|
configured: boolean;
|
|
176
|
-
|
|
188
|
+
missingFields: string[];
|
|
177
189
|
}>;
|
|
178
190
|
export type ChannelStatus = z.infer<typeof channelStatusSchema>;
|
|
179
191
|
export declare function summarizeChannels(value: unknown): ChannelStatus[];
|
|
@@ -188,23 +200,40 @@ export declare const agentTaskSchema: z.ZodObject<{
|
|
|
188
200
|
}, "strip", z.ZodTypeAny, {
|
|
189
201
|
key: string;
|
|
190
202
|
enabled: boolean;
|
|
203
|
+
instructions?: string | undefined;
|
|
191
204
|
description?: string | undefined;
|
|
192
|
-
source?: "user" | "skill" | "template" | undefined;
|
|
193
205
|
interval?: string | null | undefined;
|
|
194
|
-
|
|
206
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
195
207
|
instructionsTruncated?: boolean | undefined;
|
|
196
208
|
}, {
|
|
197
209
|
key: string;
|
|
198
210
|
enabled: boolean;
|
|
211
|
+
instructions?: string | undefined;
|
|
199
212
|
description?: string | undefined;
|
|
200
|
-
source?: "user" | "skill" | "template" | undefined;
|
|
201
213
|
interval?: string | null | undefined;
|
|
202
|
-
|
|
214
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
203
215
|
instructionsTruncated?: boolean | undefined;
|
|
204
216
|
}>;
|
|
205
217
|
export type AgentTask = z.infer<typeof agentTaskSchema>;
|
|
206
218
|
/** Custom instructions and scheduled tasks, with the instruction text cut short. */
|
|
207
219
|
export declare function summarizeTasks(value: unknown, maxInstructionLength?: number): AgentTask[];
|
|
220
|
+
declare const selectableModelSchema: z.ZodObject<{
|
|
221
|
+
slug: z.ZodString;
|
|
222
|
+
label: z.ZodOptional<z.ZodString>;
|
|
223
|
+
inputCreditsPer1M: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
outputCreditsPer1M: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
}, "strip", z.ZodTypeAny, {
|
|
226
|
+
slug: string;
|
|
227
|
+
label?: string | undefined;
|
|
228
|
+
inputCreditsPer1M?: number | undefined;
|
|
229
|
+
outputCreditsPer1M?: number | undefined;
|
|
230
|
+
}, {
|
|
231
|
+
slug: string;
|
|
232
|
+
label?: string | undefined;
|
|
233
|
+
inputCreditsPer1M?: number | undefined;
|
|
234
|
+
outputCreditsPer1M?: number | undefined;
|
|
235
|
+
}>;
|
|
236
|
+
type SelectableModel = z.infer<typeof selectableModelSchema>;
|
|
208
237
|
export declare const extraCreditPackSchema: z.ZodObject<{
|
|
209
238
|
pack: z.ZodString;
|
|
210
239
|
credits: z.ZodNumber;
|
|
@@ -232,14 +261,14 @@ export declare const agentSummarySchema: z.ZodObject<{
|
|
|
232
261
|
title: z.ZodOptional<z.ZodString>;
|
|
233
262
|
}, "strip", z.ZodTypeAny, {
|
|
234
263
|
custom: boolean;
|
|
235
|
-
slug?: string | undefined;
|
|
236
|
-
title?: string | undefined;
|
|
237
264
|
guid?: string | undefined;
|
|
265
|
+
title?: string | undefined;
|
|
266
|
+
slug?: string | undefined;
|
|
238
267
|
}, {
|
|
239
268
|
custom: boolean;
|
|
240
|
-
slug?: string | undefined;
|
|
241
|
-
title?: string | undefined;
|
|
242
269
|
guid?: string | undefined;
|
|
270
|
+
title?: string | undefined;
|
|
271
|
+
slug?: string | undefined;
|
|
243
272
|
}>;
|
|
244
273
|
tier: z.ZodOptional<z.ZodString>;
|
|
245
274
|
monthlyPriceUsd: z.ZodNullable<z.ZodNumber>;
|
|
@@ -250,14 +279,14 @@ export declare const agentSummarySchema: z.ZodObject<{
|
|
|
250
279
|
remaining: z.ZodNumber;
|
|
251
280
|
period: z.ZodOptional<z.ZodString>;
|
|
252
281
|
}, "strip", z.ZodTypeAny, {
|
|
253
|
-
extra: number;
|
|
254
282
|
monthly: number;
|
|
283
|
+
extra: number;
|
|
255
284
|
used: number;
|
|
256
285
|
remaining: number;
|
|
257
286
|
period?: string | undefined;
|
|
258
287
|
}, {
|
|
259
|
-
extra: number;
|
|
260
288
|
monthly: number;
|
|
289
|
+
extra: number;
|
|
261
290
|
used: number;
|
|
262
291
|
remaining: number;
|
|
263
292
|
period?: string | undefined;
|
|
@@ -270,6 +299,7 @@ export declare const agentSummarySchema: z.ZodObject<{
|
|
|
270
299
|
periodEndsAt: z.ZodOptional<z.ZodString>;
|
|
271
300
|
daysRemaining: z.ZodNullable<z.ZodNumber>;
|
|
272
301
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
302
|
+
atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
|
|
273
303
|
}, "strip", z.ZodTypeAny, {
|
|
274
304
|
status: string;
|
|
275
305
|
billing: "wallet" | "card";
|
|
@@ -278,6 +308,7 @@ export declare const agentSummarySchema: z.ZodObject<{
|
|
|
278
308
|
daysRemaining: number | null;
|
|
279
309
|
cancelAtPeriodEnd: boolean;
|
|
280
310
|
periodEndsAt?: string | undefined;
|
|
311
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
281
312
|
}, {
|
|
282
313
|
status: string;
|
|
283
314
|
billing: "wallet" | "card";
|
|
@@ -286,6 +317,7 @@ export declare const agentSummarySchema: z.ZodObject<{
|
|
|
286
317
|
daysRemaining: number | null;
|
|
287
318
|
cancelAtPeriodEnd: boolean;
|
|
288
319
|
periodEndsAt?: string | undefined;
|
|
320
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
289
321
|
}>>;
|
|
290
322
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
291
323
|
teamSessionMode: z.ZodOptional<z.ZodString>;
|
|
@@ -293,47 +325,26 @@ export declare const agentSummarySchema: z.ZodObject<{
|
|
|
293
325
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
294
326
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
295
327
|
}, "strip", z.ZodTypeAny, {
|
|
296
|
-
status: number | null;
|
|
297
|
-
title: string;
|
|
298
328
|
guid: string;
|
|
329
|
+
title: string;
|
|
330
|
+
status: number | null;
|
|
299
331
|
workspace: "personal" | "team";
|
|
300
|
-
skills: string[];
|
|
301
|
-
subscription: {
|
|
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;
|
|
310
332
|
credits: {
|
|
311
|
-
extra: number;
|
|
312
333
|
monthly: number;
|
|
334
|
+
extra: number;
|
|
313
335
|
used: number;
|
|
314
336
|
remaining: number;
|
|
315
337
|
period?: string | undefined;
|
|
316
338
|
};
|
|
317
339
|
template: {
|
|
318
340
|
custom: boolean;
|
|
319
|
-
slug?: string | undefined;
|
|
320
|
-
title?: string | undefined;
|
|
321
341
|
guid?: string | undefined;
|
|
342
|
+
title?: string | undefined;
|
|
343
|
+
slug?: string | undefined;
|
|
322
344
|
};
|
|
323
345
|
statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
|
|
324
346
|
setupRequired: boolean;
|
|
325
347
|
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
348
|
subscription: {
|
|
338
349
|
status: string;
|
|
339
350
|
billing: "wallet" | "card";
|
|
@@ -342,23 +353,46 @@ export declare const agentSummarySchema: z.ZodObject<{
|
|
|
342
353
|
daysRemaining: number | null;
|
|
343
354
|
cancelAtPeriodEnd: boolean;
|
|
344
355
|
periodEndsAt?: string | undefined;
|
|
356
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
345
357
|
} | null;
|
|
358
|
+
skills: string[];
|
|
359
|
+
createdAt?: string | undefined;
|
|
360
|
+
updatedAt?: string | undefined;
|
|
361
|
+
tier?: string | undefined;
|
|
362
|
+
timezone?: string | null | undefined;
|
|
363
|
+
teamSessionMode?: string | undefined;
|
|
364
|
+
}, {
|
|
365
|
+
guid: string;
|
|
366
|
+
title: string;
|
|
367
|
+
status: number | null;
|
|
368
|
+
workspace: "personal" | "team";
|
|
346
369
|
credits: {
|
|
347
|
-
extra: number;
|
|
348
370
|
monthly: number;
|
|
371
|
+
extra: number;
|
|
349
372
|
used: number;
|
|
350
373
|
remaining: number;
|
|
351
374
|
period?: string | undefined;
|
|
352
375
|
};
|
|
353
376
|
template: {
|
|
354
377
|
custom: boolean;
|
|
355
|
-
slug?: string | undefined;
|
|
356
|
-
title?: string | undefined;
|
|
357
378
|
guid?: string | undefined;
|
|
379
|
+
title?: string | undefined;
|
|
380
|
+
slug?: string | undefined;
|
|
358
381
|
};
|
|
359
382
|
statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
|
|
360
383
|
setupRequired: boolean;
|
|
361
384
|
monthlyPriceUsd: number | null;
|
|
385
|
+
subscription: {
|
|
386
|
+
status: string;
|
|
387
|
+
billing: "wallet" | "card";
|
|
388
|
+
switchingToWallet: boolean;
|
|
389
|
+
amountUsd: number | null;
|
|
390
|
+
daysRemaining: number | null;
|
|
391
|
+
cancelAtPeriodEnd: boolean;
|
|
392
|
+
periodEndsAt?: string | undefined;
|
|
393
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
394
|
+
} | null;
|
|
395
|
+
skills: string[];
|
|
362
396
|
createdAt?: string | undefined;
|
|
363
397
|
updatedAt?: string | undefined;
|
|
364
398
|
tier?: string | undefined;
|
|
@@ -380,14 +414,14 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
380
414
|
title: z.ZodOptional<z.ZodString>;
|
|
381
415
|
}, "strip", z.ZodTypeAny, {
|
|
382
416
|
custom: boolean;
|
|
383
|
-
slug?: string | undefined;
|
|
384
|
-
title?: string | undefined;
|
|
385
417
|
guid?: string | undefined;
|
|
418
|
+
title?: string | undefined;
|
|
419
|
+
slug?: string | undefined;
|
|
386
420
|
}, {
|
|
387
421
|
custom: boolean;
|
|
388
|
-
slug?: string | undefined;
|
|
389
|
-
title?: string | undefined;
|
|
390
422
|
guid?: string | undefined;
|
|
423
|
+
title?: string | undefined;
|
|
424
|
+
slug?: string | undefined;
|
|
391
425
|
}>;
|
|
392
426
|
tier: z.ZodOptional<z.ZodString>;
|
|
393
427
|
monthlyPriceUsd: z.ZodNullable<z.ZodNumber>;
|
|
@@ -398,14 +432,14 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
398
432
|
remaining: z.ZodNumber;
|
|
399
433
|
period: z.ZodOptional<z.ZodString>;
|
|
400
434
|
}, "strip", z.ZodTypeAny, {
|
|
401
|
-
extra: number;
|
|
402
435
|
monthly: number;
|
|
436
|
+
extra: number;
|
|
403
437
|
used: number;
|
|
404
438
|
remaining: number;
|
|
405
439
|
period?: string | undefined;
|
|
406
440
|
}, {
|
|
407
|
-
extra: number;
|
|
408
441
|
monthly: number;
|
|
442
|
+
extra: number;
|
|
409
443
|
used: number;
|
|
410
444
|
remaining: number;
|
|
411
445
|
period?: string | undefined;
|
|
@@ -418,6 +452,7 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
418
452
|
periodEndsAt: z.ZodOptional<z.ZodString>;
|
|
419
453
|
daysRemaining: z.ZodNullable<z.ZodNumber>;
|
|
420
454
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
455
|
+
atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
|
|
421
456
|
}, "strip", z.ZodTypeAny, {
|
|
422
457
|
status: string;
|
|
423
458
|
billing: "wallet" | "card";
|
|
@@ -426,6 +461,7 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
426
461
|
daysRemaining: number | null;
|
|
427
462
|
cancelAtPeriodEnd: boolean;
|
|
428
463
|
periodEndsAt?: string | undefined;
|
|
464
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
429
465
|
}, {
|
|
430
466
|
status: string;
|
|
431
467
|
billing: "wallet" | "card";
|
|
@@ -434,6 +470,7 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
434
470
|
daysRemaining: number | null;
|
|
435
471
|
cancelAtPeriodEnd: boolean;
|
|
436
472
|
periodEndsAt?: string | undefined;
|
|
473
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
437
474
|
}>>;
|
|
438
475
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
439
476
|
teamSessionMode: z.ZodOptional<z.ZodString>;
|
|
@@ -539,17 +576,17 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
539
576
|
filled: z.ZodBoolean;
|
|
540
577
|
requiredMissing: z.ZodBoolean;
|
|
541
578
|
}, "strip", z.ZodTypeAny, {
|
|
542
|
-
title: string;
|
|
543
|
-
optional: boolean;
|
|
544
579
|
key: string;
|
|
580
|
+
optional: boolean;
|
|
581
|
+
title: string;
|
|
545
582
|
oauth: boolean;
|
|
546
583
|
connected: boolean;
|
|
547
584
|
filled: boolean;
|
|
548
585
|
requiredMissing: boolean;
|
|
549
586
|
}, {
|
|
550
|
-
title: string;
|
|
551
|
-
optional: boolean;
|
|
552
587
|
key: string;
|
|
588
|
+
optional: boolean;
|
|
589
|
+
title: string;
|
|
553
590
|
oauth: boolean;
|
|
554
591
|
connected: boolean;
|
|
555
592
|
filled: boolean;
|
|
@@ -560,12 +597,12 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
560
597
|
title: z.ZodString;
|
|
561
598
|
oauth: z.ZodBoolean;
|
|
562
599
|
}, "strip", z.ZodTypeAny, {
|
|
563
|
-
title: string;
|
|
564
600
|
key: string;
|
|
601
|
+
title: string;
|
|
565
602
|
oauth: boolean;
|
|
566
603
|
}, {
|
|
567
|
-
title: string;
|
|
568
604
|
key: string;
|
|
605
|
+
title: string;
|
|
569
606
|
oauth: boolean;
|
|
570
607
|
}>, "many">;
|
|
571
608
|
channels: z.ZodArray<z.ZodObject<{
|
|
@@ -578,17 +615,17 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
578
615
|
}, "strip", z.ZodTypeAny, {
|
|
579
616
|
id: string;
|
|
580
617
|
title: string;
|
|
618
|
+
credentialKey: string;
|
|
581
619
|
enabled: boolean;
|
|
582
|
-
missingFields: string[];
|
|
583
620
|
configured: boolean;
|
|
584
|
-
|
|
621
|
+
missingFields: string[];
|
|
585
622
|
}, {
|
|
586
623
|
id: string;
|
|
587
624
|
title: string;
|
|
625
|
+
credentialKey: string;
|
|
588
626
|
enabled: boolean;
|
|
589
|
-
missingFields: string[];
|
|
590
627
|
configured: boolean;
|
|
591
|
-
|
|
628
|
+
missingFields: string[];
|
|
592
629
|
}>, "many">;
|
|
593
630
|
scheduledTasks: z.ZodArray<z.ZodObject<{
|
|
594
631
|
key: z.ZodString;
|
|
@@ -601,18 +638,18 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
601
638
|
}, "strip", z.ZodTypeAny, {
|
|
602
639
|
key: string;
|
|
603
640
|
enabled: boolean;
|
|
641
|
+
instructions?: string | undefined;
|
|
604
642
|
description?: string | undefined;
|
|
605
|
-
source?: "user" | "skill" | "template" | undefined;
|
|
606
643
|
interval?: string | null | undefined;
|
|
607
|
-
|
|
644
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
608
645
|
instructionsTruncated?: boolean | undefined;
|
|
609
646
|
}, {
|
|
610
647
|
key: string;
|
|
611
648
|
enabled: boolean;
|
|
649
|
+
instructions?: string | undefined;
|
|
612
650
|
description?: string | undefined;
|
|
613
|
-
source?: "user" | "skill" | "template" | undefined;
|
|
614
651
|
interval?: string | null | undefined;
|
|
615
|
-
|
|
652
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
616
653
|
instructionsTruncated?: boolean | undefined;
|
|
617
654
|
}>, "many">;
|
|
618
655
|
customInstructions: z.ZodArray<z.ZodObject<{
|
|
@@ -626,18 +663,18 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
626
663
|
}, "strip", z.ZodTypeAny, {
|
|
627
664
|
key: string;
|
|
628
665
|
enabled: boolean;
|
|
666
|
+
instructions?: string | undefined;
|
|
629
667
|
description?: string | undefined;
|
|
630
|
-
source?: "user" | "skill" | "template" | undefined;
|
|
631
668
|
interval?: string | null | undefined;
|
|
632
|
-
|
|
669
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
633
670
|
instructionsTruncated?: boolean | undefined;
|
|
634
671
|
}, {
|
|
635
672
|
key: string;
|
|
636
673
|
enabled: boolean;
|
|
674
|
+
instructions?: string | undefined;
|
|
637
675
|
description?: string | undefined;
|
|
638
|
-
source?: "user" | "skill" | "template" | undefined;
|
|
639
676
|
interval?: string | null | undefined;
|
|
640
|
-
|
|
677
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
641
678
|
instructionsTruncated?: boolean | undefined;
|
|
642
679
|
}>, "many">;
|
|
643
680
|
queuedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -648,8 +685,9 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
648
685
|
dashboardUrl: z.ZodString;
|
|
649
686
|
}, "strip", z.ZodTypeAny, {
|
|
650
687
|
categories: string[];
|
|
651
|
-
|
|
688
|
+
guid: string;
|
|
652
689
|
title: string;
|
|
690
|
+
status: number | null;
|
|
653
691
|
pricing: {
|
|
654
692
|
starter: {
|
|
655
693
|
priceUsd: number;
|
|
@@ -660,89 +698,89 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
660
698
|
monthlyCredits: number;
|
|
661
699
|
};
|
|
662
700
|
} | null;
|
|
663
|
-
guid: string;
|
|
664
701
|
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;
|
|
692
702
|
credits: {
|
|
693
|
-
extra: number;
|
|
694
703
|
monthly: number;
|
|
704
|
+
extra: number;
|
|
695
705
|
used: number;
|
|
696
706
|
remaining: number;
|
|
697
707
|
period?: string | undefined;
|
|
698
708
|
};
|
|
699
709
|
template: {
|
|
700
710
|
custom: boolean;
|
|
701
|
-
slug?: string | undefined;
|
|
702
|
-
title?: string | undefined;
|
|
703
711
|
guid?: string | undefined;
|
|
712
|
+
title?: string | undefined;
|
|
713
|
+
slug?: string | undefined;
|
|
704
714
|
};
|
|
705
715
|
statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
|
|
706
716
|
setupRequired: boolean;
|
|
707
717
|
monthlyPriceUsd: number | null;
|
|
718
|
+
subscription: {
|
|
719
|
+
status: string;
|
|
720
|
+
billing: "wallet" | "card";
|
|
721
|
+
switchingToWallet: boolean;
|
|
722
|
+
amountUsd: number | null;
|
|
723
|
+
daysRemaining: number | null;
|
|
724
|
+
cancelAtPeriodEnd: boolean;
|
|
725
|
+
periodEndsAt?: string | undefined;
|
|
726
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
727
|
+
} | null;
|
|
728
|
+
skills: string[];
|
|
708
729
|
extraCreditPacks: {
|
|
709
730
|
priceUsd: number;
|
|
710
731
|
credits: number;
|
|
711
732
|
pack: string;
|
|
712
733
|
}[];
|
|
713
734
|
enabledCommands: string[] | null;
|
|
714
|
-
|
|
735
|
+
credentials: {
|
|
736
|
+
key: string;
|
|
737
|
+
optional: boolean;
|
|
715
738
|
title: string;
|
|
739
|
+
oauth: boolean;
|
|
740
|
+
connected: boolean;
|
|
741
|
+
filled: boolean;
|
|
742
|
+
requiredMissing: boolean;
|
|
743
|
+
}[];
|
|
744
|
+
missingCredentials: {
|
|
716
745
|
key: string;
|
|
746
|
+
title: string;
|
|
717
747
|
oauth: boolean;
|
|
718
748
|
}[];
|
|
749
|
+
channels: {
|
|
750
|
+
id: string;
|
|
751
|
+
title: string;
|
|
752
|
+
credentialKey: string;
|
|
753
|
+
enabled: boolean;
|
|
754
|
+
configured: boolean;
|
|
755
|
+
missingFields: string[];
|
|
756
|
+
}[];
|
|
719
757
|
scheduledTasks: {
|
|
720
758
|
key: string;
|
|
721
759
|
enabled: boolean;
|
|
760
|
+
instructions?: string | undefined;
|
|
722
761
|
description?: string | undefined;
|
|
723
|
-
source?: "user" | "skill" | "template" | undefined;
|
|
724
762
|
interval?: string | null | undefined;
|
|
725
|
-
|
|
763
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
726
764
|
instructionsTruncated?: boolean | undefined;
|
|
727
765
|
}[];
|
|
728
766
|
customInstructions: {
|
|
729
767
|
key: string;
|
|
730
768
|
enabled: boolean;
|
|
769
|
+
instructions?: string | undefined;
|
|
731
770
|
description?: string | undefined;
|
|
732
|
-
source?: "user" | "skill" | "template" | undefined;
|
|
733
771
|
interval?: string | null | undefined;
|
|
734
|
-
|
|
772
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
735
773
|
instructionsTruncated?: boolean | undefined;
|
|
736
774
|
}[];
|
|
737
775
|
dashboardUrl: string;
|
|
738
776
|
description?: string | undefined;
|
|
777
|
+
createdAt?: string | undefined;
|
|
739
778
|
models?: {
|
|
740
779
|
chat: string | null;
|
|
741
780
|
cron: string | null;
|
|
742
781
|
voicePrep: string | null;
|
|
743
782
|
voicePostcall: string | null;
|
|
744
783
|
} | undefined;
|
|
745
|
-
createdAt?: string | undefined;
|
|
746
784
|
cover?: string | undefined;
|
|
747
785
|
updatedAt?: string | undefined;
|
|
748
786
|
startedAt?: string | undefined;
|
|
@@ -761,8 +799,9 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
761
799
|
erroredAt?: string | undefined;
|
|
762
800
|
}, {
|
|
763
801
|
categories: string[];
|
|
764
|
-
|
|
802
|
+
guid: string;
|
|
765
803
|
title: string;
|
|
804
|
+
status: number | null;
|
|
766
805
|
pricing: {
|
|
767
806
|
starter: {
|
|
768
807
|
priceUsd: number;
|
|
@@ -773,89 +812,89 @@ export declare const agentDetailSchema: z.ZodObject<{
|
|
|
773
812
|
monthlyCredits: number;
|
|
774
813
|
};
|
|
775
814
|
} | null;
|
|
776
|
-
guid: string;
|
|
777
815
|
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;
|
|
805
816
|
credits: {
|
|
806
|
-
extra: number;
|
|
807
817
|
monthly: number;
|
|
818
|
+
extra: number;
|
|
808
819
|
used: number;
|
|
809
820
|
remaining: number;
|
|
810
821
|
period?: string | undefined;
|
|
811
822
|
};
|
|
812
823
|
template: {
|
|
813
824
|
custom: boolean;
|
|
814
|
-
slug?: string | undefined;
|
|
815
|
-
title?: string | undefined;
|
|
816
825
|
guid?: string | undefined;
|
|
826
|
+
title?: string | undefined;
|
|
827
|
+
slug?: string | undefined;
|
|
817
828
|
};
|
|
818
829
|
statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
|
|
819
830
|
setupRequired: boolean;
|
|
820
831
|
monthlyPriceUsd: number | null;
|
|
832
|
+
subscription: {
|
|
833
|
+
status: string;
|
|
834
|
+
billing: "wallet" | "card";
|
|
835
|
+
switchingToWallet: boolean;
|
|
836
|
+
amountUsd: number | null;
|
|
837
|
+
daysRemaining: number | null;
|
|
838
|
+
cancelAtPeriodEnd: boolean;
|
|
839
|
+
periodEndsAt?: string | undefined;
|
|
840
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
841
|
+
} | null;
|
|
842
|
+
skills: string[];
|
|
821
843
|
extraCreditPacks: {
|
|
822
844
|
priceUsd: number;
|
|
823
845
|
credits: number;
|
|
824
846
|
pack: string;
|
|
825
847
|
}[];
|
|
826
848
|
enabledCommands: string[] | null;
|
|
827
|
-
|
|
849
|
+
credentials: {
|
|
850
|
+
key: string;
|
|
851
|
+
optional: boolean;
|
|
828
852
|
title: string;
|
|
853
|
+
oauth: boolean;
|
|
854
|
+
connected: boolean;
|
|
855
|
+
filled: boolean;
|
|
856
|
+
requiredMissing: boolean;
|
|
857
|
+
}[];
|
|
858
|
+
missingCredentials: {
|
|
829
859
|
key: string;
|
|
860
|
+
title: string;
|
|
830
861
|
oauth: boolean;
|
|
831
862
|
}[];
|
|
863
|
+
channels: {
|
|
864
|
+
id: string;
|
|
865
|
+
title: string;
|
|
866
|
+
credentialKey: string;
|
|
867
|
+
enabled: boolean;
|
|
868
|
+
configured: boolean;
|
|
869
|
+
missingFields: string[];
|
|
870
|
+
}[];
|
|
832
871
|
scheduledTasks: {
|
|
833
872
|
key: string;
|
|
834
873
|
enabled: boolean;
|
|
874
|
+
instructions?: string | undefined;
|
|
835
875
|
description?: string | undefined;
|
|
836
|
-
source?: "user" | "skill" | "template" | undefined;
|
|
837
876
|
interval?: string | null | undefined;
|
|
838
|
-
|
|
877
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
839
878
|
instructionsTruncated?: boolean | undefined;
|
|
840
879
|
}[];
|
|
841
880
|
customInstructions: {
|
|
842
881
|
key: string;
|
|
843
882
|
enabled: boolean;
|
|
883
|
+
instructions?: string | undefined;
|
|
844
884
|
description?: string | undefined;
|
|
845
|
-
source?: "user" | "skill" | "template" | undefined;
|
|
846
885
|
interval?: string | null | undefined;
|
|
847
|
-
|
|
886
|
+
source?: "user" | "template" | "skill" | undefined;
|
|
848
887
|
instructionsTruncated?: boolean | undefined;
|
|
849
888
|
}[];
|
|
850
889
|
dashboardUrl: string;
|
|
851
890
|
description?: string | undefined;
|
|
891
|
+
createdAt?: string | undefined;
|
|
852
892
|
models?: {
|
|
853
893
|
chat: string | null;
|
|
854
894
|
cron: string | null;
|
|
855
895
|
voicePrep: string | null;
|
|
856
896
|
voicePostcall: string | null;
|
|
857
897
|
} | undefined;
|
|
858
|
-
createdAt?: string | undefined;
|
|
859
898
|
cover?: string | undefined;
|
|
860
899
|
updatedAt?: string | undefined;
|
|
861
900
|
startedAt?: string | undefined;
|
|
@@ -889,14 +928,14 @@ export declare const deployedAgentSchema: z.ZodObject<{
|
|
|
889
928
|
title: z.ZodOptional<z.ZodString>;
|
|
890
929
|
}, "strip", z.ZodTypeAny, {
|
|
891
930
|
custom: boolean;
|
|
892
|
-
slug?: string | undefined;
|
|
893
|
-
title?: string | undefined;
|
|
894
931
|
guid?: string | undefined;
|
|
932
|
+
title?: string | undefined;
|
|
933
|
+
slug?: string | undefined;
|
|
895
934
|
}, {
|
|
896
935
|
custom: boolean;
|
|
897
|
-
slug?: string | undefined;
|
|
898
|
-
title?: string | undefined;
|
|
899
936
|
guid?: string | undefined;
|
|
937
|
+
title?: string | undefined;
|
|
938
|
+
slug?: string | undefined;
|
|
900
939
|
}>;
|
|
901
940
|
tier: z.ZodOptional<z.ZodString>;
|
|
902
941
|
monthlyPriceUsd: z.ZodNullable<z.ZodNumber>;
|
|
@@ -907,14 +946,14 @@ export declare const deployedAgentSchema: z.ZodObject<{
|
|
|
907
946
|
remaining: z.ZodNumber;
|
|
908
947
|
period: z.ZodOptional<z.ZodString>;
|
|
909
948
|
}, "strip", z.ZodTypeAny, {
|
|
910
|
-
extra: number;
|
|
911
949
|
monthly: number;
|
|
950
|
+
extra: number;
|
|
912
951
|
used: number;
|
|
913
952
|
remaining: number;
|
|
914
953
|
period?: string | undefined;
|
|
915
954
|
}, {
|
|
916
|
-
extra: number;
|
|
917
955
|
monthly: number;
|
|
956
|
+
extra: number;
|
|
918
957
|
used: number;
|
|
919
958
|
remaining: number;
|
|
920
959
|
period?: string | undefined;
|
|
@@ -927,6 +966,7 @@ export declare const deployedAgentSchema: z.ZodObject<{
|
|
|
927
966
|
periodEndsAt: z.ZodOptional<z.ZodString>;
|
|
928
967
|
daysRemaining: z.ZodNullable<z.ZodNumber>;
|
|
929
968
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
969
|
+
atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
|
|
930
970
|
}, "strip", z.ZodTypeAny, {
|
|
931
971
|
status: string;
|
|
932
972
|
billing: "wallet" | "card";
|
|
@@ -935,6 +975,7 @@ export declare const deployedAgentSchema: z.ZodObject<{
|
|
|
935
975
|
daysRemaining: number | null;
|
|
936
976
|
cancelAtPeriodEnd: boolean;
|
|
937
977
|
periodEndsAt?: string | undefined;
|
|
978
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
938
979
|
}, {
|
|
939
980
|
status: string;
|
|
940
981
|
billing: "wallet" | "card";
|
|
@@ -943,6 +984,7 @@ export declare const deployedAgentSchema: z.ZodObject<{
|
|
|
943
984
|
daysRemaining: number | null;
|
|
944
985
|
cancelAtPeriodEnd: boolean;
|
|
945
986
|
periodEndsAt?: string | undefined;
|
|
987
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
946
988
|
}>>;
|
|
947
989
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
948
990
|
teamSessionMode: z.ZodOptional<z.ZodString>;
|
|
@@ -955,12 +997,12 @@ export declare const deployedAgentSchema: z.ZodObject<{
|
|
|
955
997
|
title: z.ZodString;
|
|
956
998
|
oauth: z.ZodBoolean;
|
|
957
999
|
}, "strip", z.ZodTypeAny, {
|
|
958
|
-
title: string;
|
|
959
1000
|
key: string;
|
|
1001
|
+
title: string;
|
|
960
1002
|
oauth: boolean;
|
|
961
1003
|
}, {
|
|
962
|
-
title: string;
|
|
963
1004
|
key: string;
|
|
1005
|
+
title: string;
|
|
964
1006
|
oauth: boolean;
|
|
965
1007
|
}>, "many">;
|
|
966
1008
|
channels: z.ZodArray<z.ZodObject<{
|
|
@@ -973,63 +1015,64 @@ export declare const deployedAgentSchema: z.ZodObject<{
|
|
|
973
1015
|
}, "strip", z.ZodTypeAny, {
|
|
974
1016
|
id: string;
|
|
975
1017
|
title: string;
|
|
1018
|
+
credentialKey: string;
|
|
976
1019
|
enabled: boolean;
|
|
977
|
-
missingFields: string[];
|
|
978
1020
|
configured: boolean;
|
|
979
|
-
|
|
1021
|
+
missingFields: string[];
|
|
980
1022
|
}, {
|
|
981
1023
|
id: string;
|
|
982
1024
|
title: string;
|
|
1025
|
+
credentialKey: string;
|
|
983
1026
|
enabled: boolean;
|
|
984
|
-
missingFields: string[];
|
|
985
1027
|
configured: boolean;
|
|
986
|
-
|
|
1028
|
+
missingFields: string[];
|
|
987
1029
|
}>, "many">;
|
|
988
1030
|
dashboardUrl: z.ZodString;
|
|
989
1031
|
}, "strip", z.ZodTypeAny, {
|
|
990
|
-
status: number | null;
|
|
991
|
-
title: string;
|
|
992
1032
|
guid: string;
|
|
1033
|
+
title: string;
|
|
1034
|
+
status: number | null;
|
|
993
1035
|
workspace: "personal" | "team";
|
|
994
|
-
skills: string[];
|
|
995
|
-
channels: {
|
|
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;
|
|
1012
1036
|
credits: {
|
|
1013
|
-
extra: number;
|
|
1014
1037
|
monthly: number;
|
|
1038
|
+
extra: number;
|
|
1015
1039
|
used: number;
|
|
1016
1040
|
remaining: number;
|
|
1017
1041
|
period?: string | undefined;
|
|
1018
1042
|
};
|
|
1019
1043
|
template: {
|
|
1020
1044
|
custom: boolean;
|
|
1021
|
-
slug?: string | undefined;
|
|
1022
|
-
title?: string | undefined;
|
|
1023
1045
|
guid?: string | undefined;
|
|
1046
|
+
title?: string | undefined;
|
|
1047
|
+
slug?: string | undefined;
|
|
1024
1048
|
};
|
|
1025
1049
|
statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
|
|
1026
1050
|
setupRequired: boolean;
|
|
1027
1051
|
monthlyPriceUsd: number | null;
|
|
1052
|
+
subscription: {
|
|
1053
|
+
status: string;
|
|
1054
|
+
billing: "wallet" | "card";
|
|
1055
|
+
switchingToWallet: boolean;
|
|
1056
|
+
amountUsd: number | null;
|
|
1057
|
+
daysRemaining: number | null;
|
|
1058
|
+
cancelAtPeriodEnd: boolean;
|
|
1059
|
+
periodEndsAt?: string | undefined;
|
|
1060
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
1061
|
+
} | null;
|
|
1062
|
+
skills: string[];
|
|
1028
1063
|
missingCredentials: {
|
|
1029
|
-
title: string;
|
|
1030
1064
|
key: string;
|
|
1065
|
+
title: string;
|
|
1031
1066
|
oauth: boolean;
|
|
1032
1067
|
}[];
|
|
1068
|
+
channels: {
|
|
1069
|
+
id: string;
|
|
1070
|
+
title: string;
|
|
1071
|
+
credentialKey: string;
|
|
1072
|
+
enabled: boolean;
|
|
1073
|
+
configured: boolean;
|
|
1074
|
+
missingFields: string[];
|
|
1075
|
+
}[];
|
|
1033
1076
|
dashboardUrl: string;
|
|
1034
1077
|
createdAt?: string | undefined;
|
|
1035
1078
|
updatedAt?: string | undefined;
|
|
@@ -1037,49 +1080,50 @@ export declare const deployedAgentSchema: z.ZodObject<{
|
|
|
1037
1080
|
timezone?: string | null | undefined;
|
|
1038
1081
|
teamSessionMode?: string | undefined;
|
|
1039
1082
|
}, {
|
|
1040
|
-
status: number | null;
|
|
1041
|
-
title: string;
|
|
1042
1083
|
guid: string;
|
|
1084
|
+
title: string;
|
|
1085
|
+
status: number | null;
|
|
1043
1086
|
workspace: "personal" | "team";
|
|
1044
|
-
skills: string[];
|
|
1045
|
-
channels: {
|
|
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;
|
|
1062
1087
|
credits: {
|
|
1063
|
-
extra: number;
|
|
1064
1088
|
monthly: number;
|
|
1089
|
+
extra: number;
|
|
1065
1090
|
used: number;
|
|
1066
1091
|
remaining: number;
|
|
1067
1092
|
period?: string | undefined;
|
|
1068
1093
|
};
|
|
1069
1094
|
template: {
|
|
1070
1095
|
custom: boolean;
|
|
1071
|
-
slug?: string | undefined;
|
|
1072
|
-
title?: string | undefined;
|
|
1073
1096
|
guid?: string | undefined;
|
|
1097
|
+
title?: string | undefined;
|
|
1098
|
+
slug?: string | undefined;
|
|
1074
1099
|
};
|
|
1075
1100
|
statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
|
|
1076
1101
|
setupRequired: boolean;
|
|
1077
1102
|
monthlyPriceUsd: number | null;
|
|
1103
|
+
subscription: {
|
|
1104
|
+
status: string;
|
|
1105
|
+
billing: "wallet" | "card";
|
|
1106
|
+
switchingToWallet: boolean;
|
|
1107
|
+
amountUsd: number | null;
|
|
1108
|
+
daysRemaining: number | null;
|
|
1109
|
+
cancelAtPeriodEnd: boolean;
|
|
1110
|
+
periodEndsAt?: string | undefined;
|
|
1111
|
+
atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
|
|
1112
|
+
} | null;
|
|
1113
|
+
skills: string[];
|
|
1078
1114
|
missingCredentials: {
|
|
1079
|
-
title: string;
|
|
1080
1115
|
key: string;
|
|
1116
|
+
title: string;
|
|
1081
1117
|
oauth: boolean;
|
|
1082
1118
|
}[];
|
|
1119
|
+
channels: {
|
|
1120
|
+
id: string;
|
|
1121
|
+
title: string;
|
|
1122
|
+
credentialKey: string;
|
|
1123
|
+
enabled: boolean;
|
|
1124
|
+
configured: boolean;
|
|
1125
|
+
missingFields: string[];
|
|
1126
|
+
}[];
|
|
1083
1127
|
dashboardUrl: string;
|
|
1084
1128
|
createdAt?: string | undefined;
|
|
1085
1129
|
updatedAt?: string | undefined;
|
|
@@ -1094,24 +1138,34 @@ export declare function toAgentSummary(row: Record<string, unknown>): AgentSumma
|
|
|
1094
1138
|
/** Slugs a deployed agent may switch its chat, cron or voice model to. */
|
|
1095
1139
|
export declare function selectableModelSlugs(row: Record<string, unknown>): Set<string>;
|
|
1096
1140
|
/**
|
|
1097
|
-
* The full
|
|
1098
|
-
*
|
|
1099
|
-
*
|
|
1141
|
+
* The full view of one deployed agent (Detail, Deploy and Update rows): its
|
|
1142
|
+
* status, plan, prices, credits and settings, and the state of each
|
|
1143
|
+
* credential and channel.
|
|
1100
1144
|
*/
|
|
1101
1145
|
export declare function toAgentDetail(row: Record<string, unknown>): AgentDetail;
|
|
1102
|
-
export declare function formatSubscriptionLine(subscription: AgentSubscription | null): string;
|
|
1103
|
-
|
|
1104
|
-
export declare function
|
|
1146
|
+
export declare function formatSubscriptionLine(subscription: AgentSubscription | null, plainMember?: boolean): string;
|
|
1147
|
+
/** Without an active plan, an agent starts only on the extra credits it has left. */
|
|
1148
|
+
export declare function startNeedsPlan(agent: Pick<AgentSummary, 'subscription' | 'credits'>): boolean;
|
|
1149
|
+
export declare function formatAgentSummaryLines(agent: AgentSummary, plainMember?: boolean): string[];
|
|
1150
|
+
/** A scheduled task as a list line: key, on or off, schedule and description, then shortenedNote if its text was cut. */
|
|
1151
|
+
export declare function formatScheduledTaskLine(task: AgentTask, shortenedNote?: string): string;
|
|
1152
|
+
/** A custom instruction as a list line: key, on or off and description, then shortenedNote if its text was cut. */
|
|
1153
|
+
export declare function formatCustomInstructionLine(task: AgentTask, shortenedNote?: string): string;
|
|
1154
|
+
/** Each model with its credits per 1M input and output tokens, separated by semicolons. */
|
|
1155
|
+
export declare function formatModelRates(models: readonly SelectableModel[]): string;
|
|
1156
|
+
export declare function formatAgentDetail(agent: AgentDetail, plainMember?: boolean): string;
|
|
1105
1157
|
export declare function normalizeCustomSkillKey(input: string, interval?: string | null): string | null;
|
|
1106
1158
|
export declare function isGuid(value: string): boolean;
|
|
1107
1159
|
export interface AgentApiClient {
|
|
1108
1160
|
post<T = Record<string, unknown>>(path: string, body?: Record<string, unknown>, signal?: AbortSignal): Promise<T>;
|
|
1109
1161
|
}
|
|
1110
|
-
/**
|
|
1162
|
+
/** Reads one agent's Detail row; tool results are built from it with toAgentDetail or toAgentSummary. */
|
|
1111
1163
|
export declare function readAgentDetail(client: AgentApiClient, guid: string, signal?: AbortSignal): Promise<Record<string, unknown>>;
|
|
1112
1164
|
export declare function agentPollInterval(elapsedMs: number): number;
|
|
1113
1165
|
export interface AgentWaitResult {
|
|
1114
1166
|
row: Record<string, unknown>;
|
|
1167
|
+
/** False when no read succeeded, so row is the fallback row passed in. */
|
|
1168
|
+
fresh: boolean;
|
|
1115
1169
|
settled: boolean;
|
|
1116
1170
|
elapsedMs: number;
|
|
1117
1171
|
}
|
|
@@ -1124,9 +1178,13 @@ export interface NextAction {
|
|
|
1124
1178
|
}
|
|
1125
1179
|
/** The call that starts on the first missing credential, with every argument it needs. */
|
|
1126
1180
|
export declare function missingCredentialStep(agent: Pick<AgentDetail, 'guid' | 'missingCredentials'>): NextAction | undefined;
|
|
1127
|
-
/**
|
|
1128
|
-
|
|
1129
|
-
|
|
1181
|
+
/**
|
|
1182
|
+
* The most useful next call for an agent in this state, if any. For a team
|
|
1183
|
+
* member without admin rights it is only the wait for a status that moves on
|
|
1184
|
+
* by itself.
|
|
1185
|
+
*/
|
|
1186
|
+
export declare function nextStepForAgent(agent: AgentDetail, waitSeconds: number, plainMember?: boolean): NextAction | undefined;
|
|
1187
|
+
/** Whether a result:false answer is one of the refusals known to leave the wallet untouched. */
|
|
1130
1188
|
export declare function isPreChargeRefusal(error: unknown): boolean;
|
|
1131
1189
|
/**
|
|
1132
1190
|
* After a paid request was sent, whether it may still have gone through.
|
|
@@ -1135,6 +1193,7 @@ export declare function isPreChargeRefusal(error: unknown): boolean;
|
|
|
1135
1193
|
* leaves it open.
|
|
1136
1194
|
*/
|
|
1137
1195
|
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;
|
|
1196
|
+
/** 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. */
|
|
1197
|
+
export declare function settledStatusAdvice(status: number | null, plainMember?: boolean, agent?: Pick<AgentSummary, 'subscription' | 'credits'>): string;
|
|
1198
|
+
export {};
|
|
1140
1199
|
//# sourceMappingURL=user-agent.d.ts.map
|