@wiro-ai/wiro-mcp 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/playbooks.js +1 -1
  2. package/dist/tools/apply-agent-skills.d.ts.map +1 -1
  3. package/dist/tools/apply-agent-skills.js +120 -27
  4. package/dist/tools/apply-agent-skills.js.map +1 -1
  5. package/dist/tools/bind-agent-project.d.ts.map +1 -1
  6. package/dist/tools/bind-agent-project.js +8 -6
  7. package/dist/tools/bind-agent-project.js.map +1 -1
  8. package/dist/tools/connect-agent-oauth.d.ts.map +1 -1
  9. package/dist/tools/connect-agent-oauth.js +35 -14
  10. package/dist/tools/connect-agent-oauth.js.map +1 -1
  11. package/dist/tools/create-workflow.d.ts +11 -64
  12. package/dist/tools/create-workflow.d.ts.map +1 -1
  13. package/dist/tools/deploy-agent.d.ts.map +1 -1
  14. package/dist/tools/deploy-agent.js +51 -18
  15. package/dist/tools/deploy-agent.js.map +1 -1
  16. package/dist/tools/get-agent-template.d.ts.map +1 -1
  17. package/dist/tools/get-agent-template.js +3 -2
  18. package/dist/tools/get-agent-template.js.map +1 -1
  19. package/dist/tools/get-my-agent.d.ts.map +1 -1
  20. package/dist/tools/get-my-agent.js +4 -3
  21. package/dist/tools/get-my-agent.js.map +1 -1
  22. package/dist/tools/list-agent-skills.d.ts.map +1 -1
  23. package/dist/tools/list-agent-skills.js +6 -4
  24. package/dist/tools/list-agent-skills.js.map +1 -1
  25. package/dist/tools/manage-agent-custom-skill.d.ts.map +1 -1
  26. package/dist/tools/manage-agent-custom-skill.js +32 -4
  27. package/dist/tools/manage-agent-custom-skill.js.map +1 -1
  28. package/dist/tools/run-workflow.d.ts +1 -1
  29. package/dist/tools/run-workflow.d.ts.map +1 -1
  30. package/dist/tools/schemas.d.ts +187 -1582
  31. package/dist/tools/schemas.d.ts.map +1 -1
  32. package/dist/tools/schemas.js +15 -16
  33. package/dist/tools/schemas.js.map +1 -1
  34. package/dist/tools/send-agent-message.js +1 -1
  35. package/dist/tools/send-agent-message.js.map +1 -1
  36. package/dist/tools/set-agent-credentials.d.ts.map +1 -1
  37. package/dist/tools/set-agent-credentials.js +10 -6
  38. package/dist/tools/set-agent-credentials.js.map +1 -1
  39. package/dist/tools/update-agent.d.ts.map +1 -1
  40. package/dist/tools/update-agent.js +5 -3
  41. package/dist/tools/update-agent.js.map +1 -1
  42. package/dist/tools/update-workflow.d.ts +41 -324
  43. package/dist/tools/update-workflow.d.ts.map +1 -1
  44. package/dist/tools/upload-file.js +1 -1
  45. package/dist/tools/upload-file.js.map +1 -1
  46. package/dist/tools/wait-for-workflow-run.d.ts +18 -156
  47. package/dist/tools/wait-for-workflow-run.d.ts.map +1 -1
  48. package/dist/utils/agent-catalog.d.ts +80 -1066
  49. package/dist/utils/agent-catalog.d.ts.map +1 -1
  50. package/dist/utils/agent-config.d.ts +65 -3
  51. package/dist/utils/agent-config.d.ts.map +1 -1
  52. package/dist/utils/agent-config.js +136 -21
  53. package/dist/utils/agent-config.js.map +1 -1
  54. package/dist/utils/agent-message.d.ts +24 -65
  55. package/dist/utils/agent-message.d.ts.map +1 -1
  56. package/dist/utils/agent-turns.d.ts +45 -204
  57. package/dist/utils/agent-turns.d.ts.map +1 -1
  58. package/dist/utils/studio-runs.d.ts +8 -49
  59. package/dist/utils/studio-runs.d.ts.map +1 -1
  60. package/dist/utils/user-agent.d.ts +213 -902
  61. package/dist/utils/user-agent.d.ts.map +1 -1
  62. package/dist/utils/user-agent.js +156 -8
  63. package/dist/utils/user-agent.js.map +1 -1
  64. package/dist/utils/workflow-agent.d.ts +12 -73
  65. package/dist/utils/workflow-agent.d.ts.map +1 -1
  66. package/dist/utils/workflow.d.ts +31 -394
  67. package/dist/utils/workflow.d.ts.map +1 -1
  68. package/package.json +2 -2
@@ -2,7 +2,16 @@ import { z } from 'zod';
2
2
  import { type ToolCallContext } from './poll.js';
3
3
  export declare const AGENT_DASHBOARD_URL = "https://wiro.ai/panel/agents";
4
4
  export declare function agentDashboardUrl(guid: string): string;
5
- export declare const agentStatusLabelSchema: z.ZodEnum<["stopped", "stopping", "queued", "starting", "running", "error", "setup_required", "unknown"]>;
5
+ export declare const agentStatusLabelSchema: z.ZodEnum<{
6
+ error: "error";
7
+ running: "running";
8
+ unknown: "unknown";
9
+ stopped: "stopped";
10
+ stopping: "stopping";
11
+ queued: "queued";
12
+ starting: "starting";
13
+ setup_required: "setup_required";
14
+ }>;
6
15
  export type AgentStatusLabel = z.infer<typeof agentStatusLabelSchema>;
7
16
  export declare function readAgentStatus(row: Record<string, unknown>): number | null;
8
17
  export declare function agentStatusLabel(status: number | null | undefined): AgentStatusLabel;
@@ -18,53 +27,17 @@ export type AgentTier = typeof AGENT_TIERS[number];
18
27
  export declare const tierPriceSchema: z.ZodObject<{
19
28
  priceUsd: z.ZodNumber;
20
29
  monthlyCredits: z.ZodNumber;
21
- }, "strip", z.ZodTypeAny, {
22
- priceUsd: number;
23
- monthlyCredits: number;
24
- }, {
25
- priceUsd: number;
26
- monthlyCredits: number;
27
- }>;
30
+ }, z.core.$strip>;
28
31
  export declare const tierPricingSchema: z.ZodObject<{
29
32
  starter: z.ZodObject<{
30
33
  priceUsd: z.ZodNumber;
31
34
  monthlyCredits: z.ZodNumber;
32
- }, "strip", z.ZodTypeAny, {
33
- priceUsd: number;
34
- monthlyCredits: number;
35
- }, {
36
- priceUsd: number;
37
- monthlyCredits: number;
38
- }>;
35
+ }, z.core.$strip>;
39
36
  pro: z.ZodObject<{
40
37
  priceUsd: z.ZodNumber;
41
38
  monthlyCredits: z.ZodNumber;
42
- }, "strip", z.ZodTypeAny, {
43
- priceUsd: number;
44
- monthlyCredits: number;
45
- }, {
46
- priceUsd: number;
47
- monthlyCredits: number;
48
- }>;
49
- }, "strip", z.ZodTypeAny, {
50
- starter: {
51
- priceUsd: number;
52
- monthlyCredits: number;
53
- };
54
- pro: {
55
- priceUsd: number;
56
- monthlyCredits: number;
57
- };
58
- }, {
59
- starter: {
60
- priceUsd: number;
61
- monthlyCredits: number;
62
- };
63
- pro: {
64
- priceUsd: number;
65
- monthlyCredits: number;
66
- };
67
- }>;
39
+ }, z.core.$strip>;
40
+ }, z.core.$strip>;
68
41
  export type TierPricing = z.infer<typeof tierPricingSchema>;
69
42
  /** Starter and Pro prices, or null when Wiro could not price the agent. */
70
43
  export declare function toTierPricing(value: unknown): TierPricing | null;
@@ -76,32 +49,21 @@ export declare const AMOUNT_TOLERANCE_USD = 0.005;
76
49
  export declare function sameAmount(quoted: number, approved: number): boolean;
77
50
  export declare const subscriptionSchema: z.ZodObject<{
78
51
  status: z.ZodString;
79
- billing: z.ZodEnum<["wallet", "card"]>;
52
+ billing: z.ZodEnum<{
53
+ wallet: "wallet";
54
+ card: "card";
55
+ }>;
80
56
  switchingToWallet: z.ZodBoolean;
81
57
  amountUsd: z.ZodNullable<z.ZodNumber>;
82
58
  periodEndsAt: z.ZodOptional<z.ZodString>;
83
59
  daysRemaining: z.ZodNullable<z.ZodNumber>;
84
60
  cancelAtPeriodEnd: z.ZodBoolean;
85
- atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
86
- }, "strip", z.ZodTypeAny, {
87
- status: string;
88
- amountUsd: number | null;
89
- billing: "wallet" | "card";
90
- switchingToWallet: boolean;
91
- daysRemaining: number | null;
92
- cancelAtPeriodEnd: boolean;
93
- periodEndsAt?: string | undefined;
94
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
95
- }, {
96
- status: string;
97
- amountUsd: number | null;
98
- billing: "wallet" | "card";
99
- switchingToWallet: boolean;
100
- daysRemaining: number | null;
101
- cancelAtPeriodEnd: boolean;
102
- periodEndsAt?: string | undefined;
103
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
104
- }>;
61
+ atPeriodEnd: z.ZodOptional<z.ZodEnum<{
62
+ unknown: "unknown";
63
+ renews: "renews";
64
+ ends: "ends";
65
+ }>>;
66
+ }, z.core.$strip>;
105
67
  export type AgentSubscription = z.infer<typeof subscriptionSchema>;
106
68
  /**
107
69
  * Whether a plan ends with its current period: true when it ends, false when
@@ -121,21 +83,7 @@ export declare const creditsSchema: z.ZodObject<{
121
83
  used: z.ZodNumber;
122
84
  remaining: z.ZodNumber;
123
85
  period: z.ZodOptional<z.ZodString>;
124
- }, "strip", z.ZodTypeAny, {
125
- monthly: number;
126
- extra: number;
127
- used: number;
128
- remaining: number;
129
- renewal?: number | undefined;
130
- period?: string | undefined;
131
- }, {
132
- monthly: number;
133
- extra: number;
134
- used: number;
135
- remaining: number;
136
- renewal?: number | undefined;
137
- period?: string | undefined;
138
- }>;
86
+ }, z.core.$strip>;
139
87
  export type AgentCredits = z.infer<typeof creditsSchema>;
140
88
  export declare function toCredits(row: Record<string, unknown>): AgentCredits;
141
89
  /** The monthly credits as said in a line: those of this period, and those of each renewal when they differ. */
@@ -151,23 +99,7 @@ export declare const credentialStatusSchema: z.ZodObject<{
151
99
  connected: z.ZodBoolean;
152
100
  filled: z.ZodBoolean;
153
101
  requiredMissing: z.ZodBoolean;
154
- }, "strip", z.ZodTypeAny, {
155
- key: string;
156
- optional: boolean;
157
- title: string;
158
- oauth: boolean;
159
- connected: boolean;
160
- filled: boolean;
161
- requiredMissing: boolean;
162
- }, {
163
- key: string;
164
- optional: boolean;
165
- title: string;
166
- oauth: boolean;
167
- connected: boolean;
168
- filled: boolean;
169
- requiredMissing: boolean;
170
- }>;
102
+ }, z.core.$strip>;
171
103
  export type CredentialStatus = z.infer<typeof credentialStatusSchema>;
172
104
  /** The state of each credential: whether it is filled, connected or missing. */
173
105
  export declare function summarizeCredentials(credentials: unknown, skipKeys?: Set<string>): CredentialStatus[];
@@ -177,24 +109,14 @@ export declare const channelStatusSchema: z.ZodObject<{
177
109
  credentialKey: z.ZodString;
178
110
  enabled: z.ZodBoolean;
179
111
  configured: z.ZodBoolean;
180
- missingFields: z.ZodArray<z.ZodString, "many">;
181
- }, "strip", z.ZodTypeAny, {
182
- id: string;
183
- title: string;
184
- credentialKey: string;
185
- enabled: boolean;
186
- configured: boolean;
187
- missingFields: string[];
188
- }, {
189
- id: string;
190
- title: string;
191
- credentialKey: string;
192
- enabled: boolean;
193
- configured: boolean;
194
- missingFields: string[];
195
- }>;
112
+ missingFields: z.ZodArray<z.ZodString>;
113
+ }, z.core.$strip>;
196
114
  export type ChannelStatus = z.infer<typeof channelStatusSchema>;
197
115
  export declare function summarizeChannels(value: unknown): ChannelStatus[];
116
+ /** The titles of the skills that are on, from Detail's skillsmeta. */
117
+ export declare function activeSkillTitles(row: Record<string, unknown>): Map<string, string>;
118
+ /** Lists of skill names, such as the skills a paused task waits for: [["a"], ["b", "c"]]. Empty lists and non-names are dropped. */
119
+ export declare function toSkillGroups(value: unknown): string[][];
198
120
  /** The scheduled task a custom build starts with. It runs only once its text has been written. */
199
121
  export declare const STARTER_TASK_KEY = "cs-cron-my-scheduled-task";
200
122
  export declare const agentTaskSchema: z.ZodObject<{
@@ -202,29 +124,18 @@ export declare const agentTaskSchema: z.ZodObject<{
202
124
  description: z.ZodOptional<z.ZodString>;
203
125
  enabled: z.ZodBoolean;
204
126
  notWritten: z.ZodOptional<z.ZodBoolean>;
127
+ ownerSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
128
+ skillOff: z.ZodOptional<z.ZodBoolean>;
129
+ offSkills: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
205
130
  interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
206
- source: z.ZodOptional<z.ZodEnum<["template", "skill", "user"]>>;
131
+ source: z.ZodOptional<z.ZodEnum<{
132
+ user: "user";
133
+ template: "template";
134
+ skill: "skill";
135
+ }>>;
207
136
  instructions: z.ZodOptional<z.ZodString>;
208
137
  instructionsTruncated: z.ZodOptional<z.ZodBoolean>;
209
- }, "strip", z.ZodTypeAny, {
210
- key: string;
211
- enabled: boolean;
212
- instructions?: string | undefined;
213
- description?: string | undefined;
214
- notWritten?: boolean | undefined;
215
- interval?: string | null | undefined;
216
- source?: "user" | "template" | "skill" | undefined;
217
- instructionsTruncated?: boolean | undefined;
218
- }, {
219
- key: string;
220
- enabled: boolean;
221
- instructions?: string | undefined;
222
- description?: string | undefined;
223
- notWritten?: boolean | undefined;
224
- interval?: string | null | undefined;
225
- source?: "user" | "template" | "skill" | undefined;
226
- instructionsTruncated?: boolean | undefined;
227
- }>;
138
+ }, z.core.$strip>;
228
139
  export type AgentTask = z.infer<typeof agentTaskSchema>;
229
140
  /** Custom instructions and scheduled tasks, with the instruction text cut short. */
230
141
  export declare function summarizeTasks(value: unknown, maxInstructionLength?: number): AgentTask[];
@@ -233,54 +144,38 @@ declare const selectableModelSchema: z.ZodObject<{
233
144
  label: z.ZodOptional<z.ZodString>;
234
145
  inputCreditsPer1M: z.ZodOptional<z.ZodNumber>;
235
146
  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
- }>;
147
+ }, z.core.$strip>;
247
148
  type SelectableModel = z.infer<typeof selectableModelSchema>;
248
149
  export declare const extraCreditPackSchema: z.ZodObject<{
249
150
  pack: z.ZodString;
250
151
  credits: z.ZodNumber;
251
152
  priceUsd: z.ZodNumber;
252
- }, "strip", z.ZodTypeAny, {
253
- priceUsd: number;
254
- credits: number;
255
- pack: string;
256
- }, {
257
- priceUsd: number;
258
- credits: number;
259
- pack: string;
260
- }>;
153
+ }, z.core.$strip>;
261
154
  export declare const agentSummarySchema: z.ZodObject<{
262
155
  guid: z.ZodString;
263
156
  title: z.ZodString;
264
157
  status: z.ZodNullable<z.ZodNumber>;
265
- statusLabel: z.ZodEnum<["stopped", "stopping", "queued", "starting", "running", "error", "setup_required", "unknown"]>;
158
+ statusLabel: z.ZodEnum<{
159
+ error: "error";
160
+ running: "running";
161
+ unknown: "unknown";
162
+ stopped: "stopped";
163
+ stopping: "stopping";
164
+ queued: "queued";
165
+ starting: "starting";
166
+ setup_required: "setup_required";
167
+ }>;
266
168
  setupRequired: z.ZodBoolean;
267
- workspace: z.ZodEnum<["personal", "team"]>;
169
+ workspace: z.ZodEnum<{
170
+ team: "team";
171
+ personal: "personal";
172
+ }>;
268
173
  template: z.ZodObject<{
269
174
  custom: z.ZodBoolean;
270
175
  guid: z.ZodOptional<z.ZodString>;
271
176
  slug: z.ZodOptional<z.ZodString>;
272
177
  title: z.ZodOptional<z.ZodString>;
273
- }, "strip", z.ZodTypeAny, {
274
- custom: boolean;
275
- guid?: string | undefined;
276
- title?: string | undefined;
277
- slug?: string | undefined;
278
- }, {
279
- custom: boolean;
280
- guid?: string | undefined;
281
- title?: string | undefined;
282
- slug?: string | undefined;
283
- }>;
178
+ }, z.core.$strip>;
284
179
  tier: z.ZodOptional<z.ZodString>;
285
180
  monthlyPriceUsd: z.ZodNullable<z.ZodNumber>;
286
181
  credits: z.ZodObject<{
@@ -290,158 +185,57 @@ export declare const agentSummarySchema: z.ZodObject<{
290
185
  used: z.ZodNumber;
291
186
  remaining: z.ZodNumber;
292
187
  period: z.ZodOptional<z.ZodString>;
293
- }, "strip", z.ZodTypeAny, {
294
- monthly: number;
295
- extra: number;
296
- used: number;
297
- remaining: number;
298
- renewal?: number | undefined;
299
- period?: string | undefined;
300
- }, {
301
- monthly: number;
302
- extra: number;
303
- used: number;
304
- remaining: number;
305
- renewal?: number | undefined;
306
- period?: string | undefined;
307
- }>;
188
+ }, z.core.$strip>;
308
189
  subscription: z.ZodNullable<z.ZodObject<{
309
190
  status: z.ZodString;
310
- billing: z.ZodEnum<["wallet", "card"]>;
191
+ billing: z.ZodEnum<{
192
+ wallet: "wallet";
193
+ card: "card";
194
+ }>;
311
195
  switchingToWallet: z.ZodBoolean;
312
196
  amountUsd: z.ZodNullable<z.ZodNumber>;
313
197
  periodEndsAt: z.ZodOptional<z.ZodString>;
314
198
  daysRemaining: z.ZodNullable<z.ZodNumber>;
315
199
  cancelAtPeriodEnd: z.ZodBoolean;
316
- atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
317
- }, "strip", z.ZodTypeAny, {
318
- status: string;
319
- amountUsd: number | null;
320
- billing: "wallet" | "card";
321
- switchingToWallet: boolean;
322
- daysRemaining: number | null;
323
- cancelAtPeriodEnd: boolean;
324
- periodEndsAt?: string | undefined;
325
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
326
- }, {
327
- status: string;
328
- amountUsd: number | null;
329
- billing: "wallet" | "card";
330
- switchingToWallet: boolean;
331
- daysRemaining: number | null;
332
- cancelAtPeriodEnd: boolean;
333
- periodEndsAt?: string | undefined;
334
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
335
- }>>;
200
+ atPeriodEnd: z.ZodOptional<z.ZodEnum<{
201
+ unknown: "unknown";
202
+ renews: "renews";
203
+ ends: "ends";
204
+ }>>;
205
+ }, z.core.$strip>>;
336
206
  timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
337
207
  teamSessionMode: z.ZodOptional<z.ZodString>;
338
- skills: z.ZodArray<z.ZodString, "many">;
208
+ skills: z.ZodArray<z.ZodString>;
339
209
  createdAt: z.ZodOptional<z.ZodString>;
340
210
  updatedAt: z.ZodOptional<z.ZodString>;
341
211
  lastActivityAt: z.ZodOptional<z.ZodString>;
342
- }, "strip", z.ZodTypeAny, {
343
- guid: string;
344
- title: string;
345
- status: number | null;
346
- workspace: "team" | "personal";
347
- credits: {
348
- monthly: number;
349
- extra: number;
350
- used: number;
351
- remaining: number;
352
- renewal?: number | undefined;
353
- period?: string | undefined;
354
- };
355
- template: {
356
- custom: boolean;
357
- guid?: string | undefined;
358
- title?: string | undefined;
359
- slug?: string | undefined;
360
- };
361
- statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
362
- setupRequired: boolean;
363
- monthlyPriceUsd: number | null;
364
- subscription: {
365
- status: string;
366
- amountUsd: number | null;
367
- billing: "wallet" | "card";
368
- switchingToWallet: boolean;
369
- daysRemaining: number | null;
370
- cancelAtPeriodEnd: boolean;
371
- periodEndsAt?: string | undefined;
372
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
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";
386
- credits: {
387
- monthly: number;
388
- extra: number;
389
- used: number;
390
- remaining: number;
391
- renewal?: number | undefined;
392
- period?: string | undefined;
393
- };
394
- template: {
395
- custom: boolean;
396
- guid?: string | undefined;
397
- title?: string | undefined;
398
- slug?: string | undefined;
399
- };
400
- statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
401
- setupRequired: boolean;
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[];
414
- createdAt?: string | undefined;
415
- updatedAt?: string | undefined;
416
- tier?: string | undefined;
417
- timezone?: string | null | undefined;
418
- teamSessionMode?: string | undefined;
419
- lastActivityAt?: string | undefined;
420
- }>;
212
+ }, z.core.$strip>;
421
213
  export type AgentSummary = z.infer<typeof agentSummarySchema>;
422
214
  export declare const agentDetailSchema: z.ZodObject<{
423
215
  guid: z.ZodString;
424
216
  title: z.ZodString;
425
217
  status: z.ZodNullable<z.ZodNumber>;
426
- statusLabel: z.ZodEnum<["stopped", "stopping", "queued", "starting", "running", "error", "setup_required", "unknown"]>;
218
+ statusLabel: z.ZodEnum<{
219
+ error: "error";
220
+ running: "running";
221
+ unknown: "unknown";
222
+ stopped: "stopped";
223
+ stopping: "stopping";
224
+ queued: "queued";
225
+ starting: "starting";
226
+ setup_required: "setup_required";
227
+ }>;
427
228
  setupRequired: z.ZodBoolean;
428
- workspace: z.ZodEnum<["personal", "team"]>;
229
+ workspace: z.ZodEnum<{
230
+ team: "team";
231
+ personal: "personal";
232
+ }>;
429
233
  template: z.ZodObject<{
430
234
  custom: z.ZodBoolean;
431
235
  guid: z.ZodOptional<z.ZodString>;
432
236
  slug: z.ZodOptional<z.ZodString>;
433
237
  title: z.ZodOptional<z.ZodString>;
434
- }, "strip", z.ZodTypeAny, {
435
- custom: boolean;
436
- guid?: string | undefined;
437
- title?: string | undefined;
438
- slug?: string | undefined;
439
- }, {
440
- custom: boolean;
441
- guid?: string | undefined;
442
- title?: string | undefined;
443
- slug?: string | undefined;
444
- }>;
238
+ }, z.core.$strip>;
445
239
  tier: z.ZodOptional<z.ZodString>;
446
240
  monthlyPriceUsd: z.ZodNullable<z.ZodNumber>;
447
241
  credits: z.ZodObject<{
@@ -451,145 +245,61 @@ export declare const agentDetailSchema: z.ZodObject<{
451
245
  used: z.ZodNumber;
452
246
  remaining: z.ZodNumber;
453
247
  period: z.ZodOptional<z.ZodString>;
454
- }, "strip", z.ZodTypeAny, {
455
- monthly: number;
456
- extra: number;
457
- used: number;
458
- remaining: number;
459
- renewal?: number | undefined;
460
- period?: string | undefined;
461
- }, {
462
- monthly: number;
463
- extra: number;
464
- used: number;
465
- remaining: number;
466
- renewal?: number | undefined;
467
- period?: string | undefined;
468
- }>;
248
+ }, z.core.$strip>;
469
249
  subscription: z.ZodNullable<z.ZodObject<{
470
250
  status: z.ZodString;
471
- billing: z.ZodEnum<["wallet", "card"]>;
251
+ billing: z.ZodEnum<{
252
+ wallet: "wallet";
253
+ card: "card";
254
+ }>;
472
255
  switchingToWallet: z.ZodBoolean;
473
256
  amountUsd: z.ZodNullable<z.ZodNumber>;
474
257
  periodEndsAt: z.ZodOptional<z.ZodString>;
475
258
  daysRemaining: z.ZodNullable<z.ZodNumber>;
476
259
  cancelAtPeriodEnd: z.ZodBoolean;
477
- atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
478
- }, "strip", z.ZodTypeAny, {
479
- status: string;
480
- amountUsd: number | null;
481
- billing: "wallet" | "card";
482
- switchingToWallet: boolean;
483
- daysRemaining: number | null;
484
- cancelAtPeriodEnd: boolean;
485
- periodEndsAt?: string | undefined;
486
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
487
- }, {
488
- status: string;
489
- amountUsd: number | null;
490
- billing: "wallet" | "card";
491
- switchingToWallet: boolean;
492
- daysRemaining: number | null;
493
- cancelAtPeriodEnd: boolean;
494
- periodEndsAt?: string | undefined;
495
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
496
- }>>;
260
+ atPeriodEnd: z.ZodOptional<z.ZodEnum<{
261
+ unknown: "unknown";
262
+ renews: "renews";
263
+ ends: "ends";
264
+ }>>;
265
+ }, z.core.$strip>>;
497
266
  timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
498
267
  teamSessionMode: z.ZodOptional<z.ZodString>;
499
- skills: z.ZodArray<z.ZodString, "many">;
268
+ skills: z.ZodArray<z.ZodString>;
500
269
  createdAt: z.ZodOptional<z.ZodString>;
501
270
  updatedAt: z.ZodOptional<z.ZodString>;
502
271
  lastActivityAt: z.ZodOptional<z.ZodString>;
503
- } & {
504
272
  description: z.ZodOptional<z.ZodString>;
505
273
  cover: z.ZodOptional<z.ZodString>;
506
- categories: z.ZodArray<z.ZodString, "many">;
274
+ categories: z.ZodArray<z.ZodString>;
507
275
  pricing: z.ZodNullable<z.ZodObject<{
508
276
  starter: z.ZodObject<{
509
277
  priceUsd: z.ZodNumber;
510
278
  monthlyCredits: z.ZodNumber;
511
- }, "strip", z.ZodTypeAny, {
512
- priceUsd: number;
513
- monthlyCredits: number;
514
- }, {
515
- priceUsd: number;
516
- monthlyCredits: number;
517
- }>;
279
+ }, z.core.$strip>;
518
280
  pro: z.ZodObject<{
519
281
  priceUsd: z.ZodNumber;
520
282
  monthlyCredits: z.ZodNumber;
521
- }, "strip", z.ZodTypeAny, {
522
- priceUsd: number;
523
- monthlyCredits: number;
524
- }, {
525
- priceUsd: number;
526
- monthlyCredits: number;
527
- }>;
528
- }, "strip", z.ZodTypeAny, {
529
- starter: {
530
- priceUsd: number;
531
- monthlyCredits: number;
532
- };
533
- pro: {
534
- priceUsd: number;
535
- monthlyCredits: number;
536
- };
537
- }, {
538
- starter: {
539
- priceUsd: number;
540
- monthlyCredits: number;
541
- };
542
- pro: {
543
- priceUsd: number;
544
- monthlyCredits: number;
545
- };
546
- }>>;
283
+ }, z.core.$strip>;
284
+ }, z.core.$strip>>;
547
285
  extraCreditPacks: z.ZodArray<z.ZodObject<{
548
286
  pack: z.ZodString;
549
287
  credits: z.ZodNumber;
550
288
  priceUsd: z.ZodNumber;
551
- }, "strip", z.ZodTypeAny, {
552
- priceUsd: number;
553
- credits: number;
554
- pack: string;
555
- }, {
556
- priceUsd: number;
557
- credits: number;
558
- pack: string;
559
- }>, "many">;
289
+ }, z.core.$strip>>;
560
290
  models: z.ZodOptional<z.ZodObject<{
561
291
  chat: z.ZodNullable<z.ZodString>;
562
292
  cron: z.ZodNullable<z.ZodString>;
563
293
  voicePrep: z.ZodNullable<z.ZodString>;
564
294
  voicePostcall: z.ZodNullable<z.ZodString>;
565
- }, "strip", z.ZodTypeAny, {
566
- chat: string | null;
567
- cron: string | null;
568
- voicePrep: string | null;
569
- voicePostcall: string | null;
570
- }, {
571
- chat: string | null;
572
- cron: string | null;
573
- voicePrep: string | null;
574
- voicePostcall: string | null;
575
- }>>;
295
+ }, z.core.$strip>>;
576
296
  selectableModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
577
297
  slug: z.ZodString;
578
298
  label: z.ZodOptional<z.ZodString>;
579
299
  inputCreditsPer1M: z.ZodOptional<z.ZodNumber>;
580
300
  outputCreditsPer1M: z.ZodOptional<z.ZodNumber>;
581
- }, "strip", z.ZodTypeAny, {
582
- slug: string;
583
- label?: string | undefined;
584
- inputCreditsPer1M?: number | undefined;
585
- outputCreditsPer1M?: number | undefined;
586
- }, {
587
- slug: string;
588
- label?: string | undefined;
589
- inputCreditsPer1M?: number | undefined;
590
- outputCreditsPer1M?: number | undefined;
591
- }>, "many">>;
592
- enabledCommands: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
301
+ }, z.core.$strip>>>;
302
+ enabledCommands: z.ZodNullable<z.ZodArray<z.ZodString>>;
593
303
  credentials: z.ZodArray<z.ZodObject<{
594
304
  key: z.ZodString;
595
305
  title: z.ZodString;
@@ -598,382 +308,88 @@ export declare const agentDetailSchema: z.ZodObject<{
598
308
  connected: z.ZodBoolean;
599
309
  filled: z.ZodBoolean;
600
310
  requiredMissing: z.ZodBoolean;
601
- }, "strip", z.ZodTypeAny, {
602
- key: string;
603
- optional: boolean;
604
- title: string;
605
- oauth: boolean;
606
- connected: boolean;
607
- filled: boolean;
608
- requiredMissing: boolean;
609
- }, {
610
- key: string;
611
- optional: boolean;
612
- title: string;
613
- oauth: boolean;
614
- connected: boolean;
615
- filled: boolean;
616
- requiredMissing: boolean;
617
- }>, "many">;
311
+ }, z.core.$strip>>;
618
312
  missingCredentials: z.ZodArray<z.ZodObject<{
619
313
  key: z.ZodString;
620
314
  title: z.ZodString;
621
315
  oauth: z.ZodBoolean;
622
- }, "strip", z.ZodTypeAny, {
623
- key: string;
624
- title: string;
625
- oauth: boolean;
626
- }, {
627
- key: string;
628
- title: string;
629
- oauth: boolean;
630
- }>, "many">;
316
+ }, z.core.$strip>>;
631
317
  channels: z.ZodArray<z.ZodObject<{
632
318
  id: z.ZodString;
633
319
  title: z.ZodString;
634
320
  credentialKey: z.ZodString;
635
321
  enabled: z.ZodBoolean;
636
322
  configured: z.ZodBoolean;
637
- missingFields: z.ZodArray<z.ZodString, "many">;
638
- }, "strip", z.ZodTypeAny, {
639
- id: string;
640
- title: string;
641
- credentialKey: string;
642
- enabled: boolean;
643
- configured: boolean;
644
- missingFields: string[];
645
- }, {
646
- id: string;
647
- title: string;
648
- credentialKey: string;
649
- enabled: boolean;
650
- configured: boolean;
651
- missingFields: string[];
652
- }>, "many">;
323
+ missingFields: z.ZodArray<z.ZodString>;
324
+ }, z.core.$strip>>;
653
325
  scheduledTasks: z.ZodArray<z.ZodObject<{
654
326
  key: z.ZodString;
655
327
  description: z.ZodOptional<z.ZodString>;
656
328
  enabled: z.ZodBoolean;
657
329
  notWritten: z.ZodOptional<z.ZodBoolean>;
330
+ ownerSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
331
+ skillOff: z.ZodOptional<z.ZodBoolean>;
332
+ offSkills: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
658
333
  interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
659
- source: z.ZodOptional<z.ZodEnum<["template", "skill", "user"]>>;
334
+ source: z.ZodOptional<z.ZodEnum<{
335
+ user: "user";
336
+ template: "template";
337
+ skill: "skill";
338
+ }>>;
660
339
  instructions: z.ZodOptional<z.ZodString>;
661
340
  instructionsTruncated: z.ZodOptional<z.ZodBoolean>;
662
- }, "strip", z.ZodTypeAny, {
663
- key: string;
664
- enabled: boolean;
665
- instructions?: string | undefined;
666
- description?: string | undefined;
667
- notWritten?: boolean | undefined;
668
- interval?: string | null | undefined;
669
- source?: "user" | "template" | "skill" | undefined;
670
- instructionsTruncated?: boolean | undefined;
671
- }, {
672
- key: string;
673
- enabled: boolean;
674
- instructions?: string | undefined;
675
- description?: string | undefined;
676
- notWritten?: boolean | undefined;
677
- interval?: string | null | undefined;
678
- source?: "user" | "template" | "skill" | undefined;
679
- instructionsTruncated?: boolean | undefined;
680
- }>, "many">;
341
+ }, z.core.$strip>>;
681
342
  customInstructions: z.ZodArray<z.ZodObject<{
682
343
  key: z.ZodString;
683
344
  description: z.ZodOptional<z.ZodString>;
684
345
  enabled: z.ZodBoolean;
685
346
  notWritten: z.ZodOptional<z.ZodBoolean>;
347
+ ownerSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
348
+ skillOff: z.ZodOptional<z.ZodBoolean>;
349
+ offSkills: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
686
350
  interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
687
- source: z.ZodOptional<z.ZodEnum<["template", "skill", "user"]>>;
351
+ source: z.ZodOptional<z.ZodEnum<{
352
+ user: "user";
353
+ template: "template";
354
+ skill: "skill";
355
+ }>>;
688
356
  instructions: z.ZodOptional<z.ZodString>;
689
357
  instructionsTruncated: z.ZodOptional<z.ZodBoolean>;
690
- }, "strip", z.ZodTypeAny, {
691
- key: string;
692
- enabled: boolean;
693
- instructions?: string | undefined;
694
- description?: string | undefined;
695
- notWritten?: boolean | undefined;
696
- interval?: string | null | undefined;
697
- source?: "user" | "template" | "skill" | undefined;
698
- instructionsTruncated?: boolean | undefined;
699
- }, {
700
- key: string;
701
- enabled: boolean;
702
- instructions?: string | undefined;
703
- description?: string | undefined;
704
- notWritten?: boolean | undefined;
705
- interval?: string | null | undefined;
706
- source?: "user" | "template" | "skill" | undefined;
707
- instructionsTruncated?: boolean | undefined;
708
- }>, "many">;
358
+ }, z.core.$strip>>;
709
359
  queuedAt: z.ZodOptional<z.ZodString>;
710
360
  startedAt: z.ZodOptional<z.ZodString>;
711
361
  runningAt: z.ZodOptional<z.ZodString>;
712
362
  stoppedAt: z.ZodOptional<z.ZodString>;
713
363
  erroredAt: z.ZodOptional<z.ZodString>;
714
364
  dashboardUrl: z.ZodString;
715
- }, "strip", z.ZodTypeAny, {
716
- categories: string[];
717
- guid: string;
718
- title: string;
719
- status: number | null;
720
- pricing: {
721
- starter: {
722
- priceUsd: number;
723
- monthlyCredits: number;
724
- };
725
- pro: {
726
- priceUsd: number;
727
- monthlyCredits: number;
728
- };
729
- } | null;
730
- workspace: "team" | "personal";
731
- credits: {
732
- monthly: number;
733
- extra: number;
734
- used: number;
735
- remaining: number;
736
- renewal?: number | undefined;
737
- period?: string | undefined;
738
- };
739
- template: {
740
- custom: boolean;
741
- guid?: string | undefined;
742
- title?: string | undefined;
743
- slug?: string | undefined;
744
- };
745
- statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
746
- setupRequired: boolean;
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[];
759
- extraCreditPacks: {
760
- priceUsd: number;
761
- credits: number;
762
- pack: string;
763
- }[];
764
- enabledCommands: string[] | null;
765
- credentials: {
766
- key: string;
767
- optional: boolean;
768
- title: string;
769
- oauth: boolean;
770
- connected: boolean;
771
- filled: boolean;
772
- requiredMissing: boolean;
773
- }[];
774
- missingCredentials: {
775
- key: string;
776
- title: string;
777
- oauth: boolean;
778
- }[];
779
- channels: {
780
- id: string;
781
- title: string;
782
- credentialKey: string;
783
- enabled: boolean;
784
- configured: boolean;
785
- missingFields: string[];
786
- }[];
787
- scheduledTasks: {
788
- key: string;
789
- enabled: boolean;
790
- instructions?: string | undefined;
791
- description?: string | undefined;
792
- notWritten?: boolean | undefined;
793
- interval?: string | null | undefined;
794
- source?: "user" | "template" | "skill" | undefined;
795
- instructionsTruncated?: boolean | undefined;
796
- }[];
797
- customInstructions: {
798
- key: string;
799
- enabled: boolean;
800
- instructions?: string | undefined;
801
- description?: string | undefined;
802
- notWritten?: boolean | undefined;
803
- interval?: string | null | undefined;
804
- source?: "user" | "template" | "skill" | undefined;
805
- instructionsTruncated?: boolean | undefined;
806
- }[];
807
- dashboardUrl: string;
808
- description?: string | undefined;
809
- createdAt?: string | undefined;
810
- models?: {
811
- chat: string | null;
812
- cron: string | null;
813
- voicePrep: string | null;
814
- voicePostcall: string | null;
815
- } | undefined;
816
- cover?: string | undefined;
817
- updatedAt?: string | undefined;
818
- startedAt?: string | undefined;
819
- tier?: string | undefined;
820
- timezone?: string | null | undefined;
821
- teamSessionMode?: string | undefined;
822
- lastActivityAt?: string | undefined;
823
- selectableModels?: {
824
- slug: string;
825
- label?: string | undefined;
826
- inputCreditsPer1M?: number | undefined;
827
- outputCreditsPer1M?: number | undefined;
828
- }[] | undefined;
829
- queuedAt?: string | undefined;
830
- runningAt?: string | undefined;
831
- stoppedAt?: string | undefined;
832
- erroredAt?: string | undefined;
833
- }, {
834
- categories: string[];
835
- guid: string;
836
- title: string;
837
- status: number | null;
838
- pricing: {
839
- starter: {
840
- priceUsd: number;
841
- monthlyCredits: number;
842
- };
843
- pro: {
844
- priceUsd: number;
845
- monthlyCredits: number;
846
- };
847
- } | null;
848
- workspace: "team" | "personal";
849
- credits: {
850
- monthly: number;
851
- extra: number;
852
- used: number;
853
- remaining: number;
854
- renewal?: number | undefined;
855
- period?: string | undefined;
856
- };
857
- template: {
858
- custom: boolean;
859
- guid?: string | undefined;
860
- title?: string | undefined;
861
- slug?: string | undefined;
862
- };
863
- statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
864
- setupRequired: boolean;
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[];
877
- extraCreditPacks: {
878
- priceUsd: number;
879
- credits: number;
880
- pack: string;
881
- }[];
882
- enabledCommands: string[] | null;
883
- credentials: {
884
- key: string;
885
- optional: boolean;
886
- title: string;
887
- oauth: boolean;
888
- connected: boolean;
889
- filled: boolean;
890
- requiredMissing: boolean;
891
- }[];
892
- missingCredentials: {
893
- key: string;
894
- title: string;
895
- oauth: boolean;
896
- }[];
897
- channels: {
898
- id: string;
899
- title: string;
900
- credentialKey: string;
901
- enabled: boolean;
902
- configured: boolean;
903
- missingFields: string[];
904
- }[];
905
- scheduledTasks: {
906
- key: string;
907
- enabled: boolean;
908
- instructions?: string | undefined;
909
- description?: string | undefined;
910
- notWritten?: boolean | undefined;
911
- interval?: string | null | undefined;
912
- source?: "user" | "template" | "skill" | undefined;
913
- instructionsTruncated?: boolean | undefined;
914
- }[];
915
- customInstructions: {
916
- key: string;
917
- enabled: boolean;
918
- instructions?: string | undefined;
919
- description?: string | undefined;
920
- notWritten?: boolean | undefined;
921
- interval?: string | null | undefined;
922
- source?: "user" | "template" | "skill" | undefined;
923
- instructionsTruncated?: boolean | undefined;
924
- }[];
925
- dashboardUrl: string;
926
- description?: string | undefined;
927
- createdAt?: string | undefined;
928
- models?: {
929
- chat: string | null;
930
- cron: string | null;
931
- voicePrep: string | null;
932
- voicePostcall: string | null;
933
- } | undefined;
934
- cover?: string | undefined;
935
- updatedAt?: string | undefined;
936
- startedAt?: string | undefined;
937
- tier?: string | undefined;
938
- timezone?: string | null | undefined;
939
- teamSessionMode?: string | undefined;
940
- lastActivityAt?: string | undefined;
941
- selectableModels?: {
942
- slug: string;
943
- label?: string | undefined;
944
- inputCreditsPer1M?: number | undefined;
945
- outputCreditsPer1M?: number | undefined;
946
- }[] | undefined;
947
- queuedAt?: string | undefined;
948
- runningAt?: string | undefined;
949
- stoppedAt?: string | undefined;
950
- erroredAt?: string | undefined;
951
- }>;
365
+ }, z.core.$strip>;
952
366
  export type AgentDetail = z.infer<typeof agentDetailSchema>;
953
367
  /** The part of a new agent that matters right after deploying it. */
954
368
  export declare const deployedAgentSchema: z.ZodObject<{
955
369
  guid: z.ZodString;
956
370
  title: z.ZodString;
957
371
  status: z.ZodNullable<z.ZodNumber>;
958
- statusLabel: z.ZodEnum<["stopped", "stopping", "queued", "starting", "running", "error", "setup_required", "unknown"]>;
372
+ statusLabel: z.ZodEnum<{
373
+ error: "error";
374
+ running: "running";
375
+ unknown: "unknown";
376
+ stopped: "stopped";
377
+ stopping: "stopping";
378
+ queued: "queued";
379
+ starting: "starting";
380
+ setup_required: "setup_required";
381
+ }>;
959
382
  setupRequired: z.ZodBoolean;
960
- workspace: z.ZodEnum<["personal", "team"]>;
383
+ workspace: z.ZodEnum<{
384
+ team: "team";
385
+ personal: "personal";
386
+ }>;
961
387
  template: z.ZodObject<{
962
388
  custom: z.ZodBoolean;
963
389
  guid: z.ZodOptional<z.ZodString>;
964
390
  slug: z.ZodOptional<z.ZodString>;
965
391
  title: z.ZodOptional<z.ZodString>;
966
- }, "strip", z.ZodTypeAny, {
967
- custom: boolean;
968
- guid?: string | undefined;
969
- title?: string | undefined;
970
- slug?: string | undefined;
971
- }, {
972
- custom: boolean;
973
- guid?: string | undefined;
974
- title?: string | undefined;
975
- slug?: string | undefined;
976
- }>;
392
+ }, z.core.$strip>;
977
393
  tier: z.ZodOptional<z.ZodString>;
978
394
  monthlyPriceUsd: z.ZodNullable<z.ZodNumber>;
979
395
  credits: z.ZodObject<{
@@ -983,199 +399,45 @@ export declare const deployedAgentSchema: z.ZodObject<{
983
399
  used: z.ZodNumber;
984
400
  remaining: z.ZodNumber;
985
401
  period: z.ZodOptional<z.ZodString>;
986
- }, "strip", z.ZodTypeAny, {
987
- monthly: number;
988
- extra: number;
989
- used: number;
990
- remaining: number;
991
- renewal?: number | undefined;
992
- period?: string | undefined;
993
- }, {
994
- monthly: number;
995
- extra: number;
996
- used: number;
997
- remaining: number;
998
- renewal?: number | undefined;
999
- period?: string | undefined;
1000
- }>;
402
+ }, z.core.$strip>;
1001
403
  subscription: z.ZodNullable<z.ZodObject<{
1002
404
  status: z.ZodString;
1003
- billing: z.ZodEnum<["wallet", "card"]>;
405
+ billing: z.ZodEnum<{
406
+ wallet: "wallet";
407
+ card: "card";
408
+ }>;
1004
409
  switchingToWallet: z.ZodBoolean;
1005
410
  amountUsd: z.ZodNullable<z.ZodNumber>;
1006
411
  periodEndsAt: z.ZodOptional<z.ZodString>;
1007
412
  daysRemaining: z.ZodNullable<z.ZodNumber>;
1008
413
  cancelAtPeriodEnd: z.ZodBoolean;
1009
- atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
1010
- }, "strip", z.ZodTypeAny, {
1011
- status: string;
1012
- amountUsd: number | null;
1013
- billing: "wallet" | "card";
1014
- switchingToWallet: boolean;
1015
- daysRemaining: number | null;
1016
- cancelAtPeriodEnd: boolean;
1017
- periodEndsAt?: string | undefined;
1018
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
1019
- }, {
1020
- status: string;
1021
- amountUsd: number | null;
1022
- billing: "wallet" | "card";
1023
- switchingToWallet: boolean;
1024
- daysRemaining: number | null;
1025
- cancelAtPeriodEnd: boolean;
1026
- periodEndsAt?: string | undefined;
1027
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
1028
- }>>;
414
+ atPeriodEnd: z.ZodOptional<z.ZodEnum<{
415
+ unknown: "unknown";
416
+ renews: "renews";
417
+ ends: "ends";
418
+ }>>;
419
+ }, z.core.$strip>>;
1029
420
  timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1030
421
  teamSessionMode: z.ZodOptional<z.ZodString>;
1031
- skills: z.ZodArray<z.ZodString, "many">;
422
+ skills: z.ZodArray<z.ZodString>;
1032
423
  createdAt: z.ZodOptional<z.ZodString>;
1033
424
  updatedAt: z.ZodOptional<z.ZodString>;
1034
425
  lastActivityAt: z.ZodOptional<z.ZodString>;
1035
- } & {
1036
426
  missingCredentials: z.ZodArray<z.ZodObject<{
1037
427
  key: z.ZodString;
1038
428
  title: z.ZodString;
1039
429
  oauth: z.ZodBoolean;
1040
- }, "strip", z.ZodTypeAny, {
1041
- key: string;
1042
- title: string;
1043
- oauth: boolean;
1044
- }, {
1045
- key: string;
1046
- title: string;
1047
- oauth: boolean;
1048
- }>, "many">;
430
+ }, z.core.$strip>>;
1049
431
  channels: z.ZodArray<z.ZodObject<{
1050
432
  id: z.ZodString;
1051
433
  title: z.ZodString;
1052
434
  credentialKey: z.ZodString;
1053
435
  enabled: z.ZodBoolean;
1054
436
  configured: z.ZodBoolean;
1055
- missingFields: z.ZodArray<z.ZodString, "many">;
1056
- }, "strip", z.ZodTypeAny, {
1057
- id: string;
1058
- title: string;
1059
- credentialKey: string;
1060
- enabled: boolean;
1061
- configured: boolean;
1062
- missingFields: string[];
1063
- }, {
1064
- id: string;
1065
- title: string;
1066
- credentialKey: string;
1067
- enabled: boolean;
1068
- configured: boolean;
1069
- missingFields: string[];
1070
- }>, "many">;
437
+ missingFields: z.ZodArray<z.ZodString>;
438
+ }, z.core.$strip>>;
1071
439
  dashboardUrl: z.ZodString;
1072
- }, "strip", z.ZodTypeAny, {
1073
- guid: string;
1074
- title: string;
1075
- status: number | null;
1076
- workspace: "team" | "personal";
1077
- credits: {
1078
- monthly: number;
1079
- extra: number;
1080
- used: number;
1081
- remaining: number;
1082
- renewal?: number | undefined;
1083
- period?: string | undefined;
1084
- };
1085
- template: {
1086
- custom: boolean;
1087
- guid?: string | undefined;
1088
- title?: string | undefined;
1089
- slug?: string | undefined;
1090
- };
1091
- statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
1092
- setupRequired: boolean;
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[];
1105
- missingCredentials: {
1106
- key: string;
1107
- title: string;
1108
- oauth: boolean;
1109
- }[];
1110
- channels: {
1111
- id: string;
1112
- title: string;
1113
- credentialKey: string;
1114
- enabled: boolean;
1115
- configured: boolean;
1116
- missingFields: string[];
1117
- }[];
1118
- dashboardUrl: string;
1119
- createdAt?: string | undefined;
1120
- updatedAt?: string | undefined;
1121
- tier?: string | undefined;
1122
- timezone?: string | null | undefined;
1123
- teamSessionMode?: string | undefined;
1124
- lastActivityAt?: string | undefined;
1125
- }, {
1126
- guid: string;
1127
- title: string;
1128
- status: number | null;
1129
- workspace: "team" | "personal";
1130
- credits: {
1131
- monthly: number;
1132
- extra: number;
1133
- used: number;
1134
- remaining: number;
1135
- renewal?: number | undefined;
1136
- period?: string | undefined;
1137
- };
1138
- template: {
1139
- custom: boolean;
1140
- guid?: string | undefined;
1141
- title?: string | undefined;
1142
- slug?: string | undefined;
1143
- };
1144
- statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
1145
- setupRequired: boolean;
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[];
1158
- missingCredentials: {
1159
- key: string;
1160
- title: string;
1161
- oauth: boolean;
1162
- }[];
1163
- channels: {
1164
- id: string;
1165
- title: string;
1166
- credentialKey: string;
1167
- enabled: boolean;
1168
- configured: boolean;
1169
- missingFields: string[];
1170
- }[];
1171
- dashboardUrl: string;
1172
- createdAt?: string | undefined;
1173
- updatedAt?: string | undefined;
1174
- tier?: string | undefined;
1175
- timezone?: string | null | undefined;
1176
- teamSessionMode?: string | undefined;
1177
- lastActivityAt?: string | undefined;
1178
- }>;
440
+ }, z.core.$strip>;
1179
441
  export type DeployedAgent = z.infer<typeof deployedAgentSchema>;
1180
442
  export declare function toDeployedAgent(agent: AgentDetail): DeployedAgent;
1181
443
  /** The compact row used by list_my_agents. */
@@ -1202,13 +464,62 @@ export declare function startNeedsPlan(agent: Pick<AgentSummary, 'subscription'
1202
464
  /** An agent's title inside a line of this server's own text: on one line, in a code span it cannot close. */
1203
465
  export declare function agentTitleSpan(title: string): string;
1204
466
  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. */
467
+ /** Names inside a sentence: a, b and c. */
468
+ export declare function nameList(names: readonly string[], word: 'and' | 'or'): string;
469
+ /**
470
+ * A name made from a key, as the dashboard makes it, for when there is no title: int-brevo-email reads
471
+ * Brevo Email and ga4-attribution-auditor GA4 Attribution Auditor. known: false leaves the list of brands
472
+ * and acronyms out, for a name the customer typed.
473
+ */
474
+ export declare function wordsFromKey(key: string, { known }?: {
475
+ known?: boolean;
476
+ }): string;
477
+ /**
478
+ * A custom skill or scheduled task as people see it, by the name the dashboard makes from its key, with the
479
+ * key the tools take: GA4 Attribution Auditor (`cs-cron-ga4-attribution-auditor`). known is false for a task
480
+ * the customer named. A key that is not plain words shows alone.
481
+ */
482
+ export declare function taskLabel(key: string, known?: boolean): string;
483
+ /** Whether a task's name comes from Wiro's words: one the customer created and named reads as typed. */
484
+ export declare function taskNamedByWiro(task: {
485
+ source?: string;
486
+ userCreated?: boolean;
487
+ ownerSkills?: string[];
488
+ }): boolean;
489
+ /**
490
+ * A skill as people see it, by its catalog title, with the name apply_agent_skills takes: Gmail Check
491
+ * (`int-gmail-check`). Without the title, words made from the name stand in for it.
492
+ */
493
+ export declare function skillLabel(name: string, titles?: ReadonlyMap<string, string>): string;
494
+ /**
495
+ * Why a paused task does not run, as a clause that names the skills to turn on (offSkills, one from each
496
+ * list). Its own on/off state stays as it is: a task that is on runs again once they are on, and one that is
497
+ * off also needs turning on.
498
+ */
499
+ export declare function skillOffText(task: Pick<AgentTask, 'enabled' | 'offSkills'>, titles?: ReadonlyMap<string, string>): string;
500
+ /** A task that waits for skills (lists, one from each) as a sentence with a space before it: " `key` stays paused until A is on." */
501
+ export declare function waitingTaskSentence(key: string, groups: readonly (readonly string[])[], titles?: ReadonlyMap<string, string>, verb?: string): string;
502
+ /**
503
+ * The paused tasks among these, each as a sentence that names the skills to turn on, with a space before it.
504
+ * A saved credential turns such a task on, but it stays paused until they are on; verb says it otherwise,
505
+ * such as "is paused" for a task the change at hand paused.
506
+ */
507
+ export declare function skillOffTasksNote(tasks: ReadonlyArray<{
508
+ key: string;
509
+ offSkills?: string[][];
510
+ skillOff?: boolean;
511
+ }>, titles?: ReadonlyMap<string, string>, verb?: string): string;
512
+ /**
513
+ * A scheduled task as a list line: name and key, on or off, schedule and description, then shortenedNote if its text
514
+ * was cut. titles names the skills a paused task waits for as people see them.
515
+ */
516
+ export declare function formatScheduledTaskLine(task: AgentTask, shortenedNote?: string, titles?: ReadonlyMap<string, string>): string;
517
+ /** A custom instruction as a list line: name and key, on or off and description, then shortenedNote if its text was cut. */
1208
518
  export declare function formatCustomInstructionLine(task: AgentTask, shortenedNote?: string): string;
1209
519
  /** Each model with its credits per 1M input and output tokens, separated by semicolons. */
1210
520
  export declare function formatModelRates(models: readonly SelectableModel[]): string;
1211
- export declare function formatAgentDetail(agent: AgentDetail, plainMember?: boolean): string;
521
+ /** titles names skills as people see them: the agent's own (activeSkillTitles) and those a paused task waits for (pausedSkillTitles). */
522
+ export declare function formatAgentDetail(agent: AgentDetail, plainMember?: boolean, titles?: ReadonlyMap<string, string>): string;
1212
523
  export declare function normalizeCustomSkillKey(input: string, interval?: string | null): string | null;
1213
524
  export declare function isGuid(value: string): boolean;
1214
525
  export interface AgentApiClient {