@wiro-ai/wiro-mcp 1.5.1 → 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 (35) hide show
  1. package/dist/tools/create-workflow.d.ts +11 -64
  2. package/dist/tools/create-workflow.d.ts.map +1 -1
  3. package/dist/tools/deploy-agent.js +1 -1
  4. package/dist/tools/deploy-agent.js.map +1 -1
  5. package/dist/tools/run-workflow.d.ts +1 -1
  6. package/dist/tools/run-workflow.d.ts.map +1 -1
  7. package/dist/tools/schemas.d.ts +187 -1582
  8. package/dist/tools/schemas.d.ts.map +1 -1
  9. package/dist/tools/schemas.js +15 -16
  10. package/dist/tools/schemas.js.map +1 -1
  11. package/dist/tools/send-agent-message.js +1 -1
  12. package/dist/tools/send-agent-message.js.map +1 -1
  13. package/dist/tools/update-agent.js +1 -1
  14. package/dist/tools/update-agent.js.map +1 -1
  15. package/dist/tools/update-workflow.d.ts +41 -324
  16. package/dist/tools/update-workflow.d.ts.map +1 -1
  17. package/dist/tools/upload-file.js +1 -1
  18. package/dist/tools/upload-file.js.map +1 -1
  19. package/dist/tools/wait-for-workflow-run.d.ts +18 -156
  20. package/dist/tools/wait-for-workflow-run.d.ts.map +1 -1
  21. package/dist/utils/agent-catalog.d.ts +78 -1094
  22. package/dist/utils/agent-catalog.d.ts.map +1 -1
  23. package/dist/utils/agent-message.d.ts +24 -65
  24. package/dist/utils/agent-message.d.ts.map +1 -1
  25. package/dist/utils/agent-turns.d.ts +45 -204
  26. package/dist/utils/agent-turns.d.ts.map +1 -1
  27. package/dist/utils/studio-runs.d.ts +8 -49
  28. package/dist/utils/studio-runs.d.ts.map +1 -1
  29. package/dist/utils/user-agent.d.ts +153 -934
  30. package/dist/utils/user-agent.d.ts.map +1 -1
  31. package/dist/utils/workflow-agent.d.ts +12 -73
  32. package/dist/utils/workflow-agent.d.ts.map +1 -1
  33. package/dist/utils/workflow.d.ts +31 -394
  34. package/dist/utils/workflow.d.ts.map +1 -1
  35. 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,22 +109,8 @@ 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[];
198
116
  /** The titles of the skills that are on, from Detail's skillsmeta. */
@@ -206,38 +124,18 @@ export declare const agentTaskSchema: z.ZodObject<{
206
124
  description: z.ZodOptional<z.ZodString>;
207
125
  enabled: z.ZodBoolean;
208
126
  notWritten: z.ZodOptional<z.ZodBoolean>;
209
- ownerSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
127
+ ownerSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
210
128
  skillOff: z.ZodOptional<z.ZodBoolean>;
211
- offSkills: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
129
+ offSkills: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
212
130
  interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
- source: z.ZodOptional<z.ZodEnum<["template", "skill", "user"]>>;
131
+ source: z.ZodOptional<z.ZodEnum<{
132
+ user: "user";
133
+ template: "template";
134
+ skill: "skill";
135
+ }>>;
214
136
  instructions: z.ZodOptional<z.ZodString>;
215
137
  instructionsTruncated: z.ZodOptional<z.ZodBoolean>;
216
- }, "strip", z.ZodTypeAny, {
217
- key: string;
218
- enabled: boolean;
219
- instructions?: string | undefined;
220
- description?: string | undefined;
221
- notWritten?: boolean | undefined;
222
- ownerSkills?: string[] | undefined;
223
- skillOff?: boolean | undefined;
224
- offSkills?: string[][] | undefined;
225
- interval?: string | null | undefined;
226
- source?: "user" | "template" | "skill" | undefined;
227
- instructionsTruncated?: boolean | undefined;
228
- }, {
229
- key: string;
230
- enabled: boolean;
231
- instructions?: string | undefined;
232
- description?: string | undefined;
233
- notWritten?: boolean | undefined;
234
- ownerSkills?: string[] | undefined;
235
- skillOff?: boolean | undefined;
236
- offSkills?: string[][] | undefined;
237
- interval?: string | null | undefined;
238
- source?: "user" | "template" | "skill" | undefined;
239
- instructionsTruncated?: boolean | undefined;
240
- }>;
138
+ }, z.core.$strip>;
241
139
  export type AgentTask = z.infer<typeof agentTaskSchema>;
242
140
  /** Custom instructions and scheduled tasks, with the instruction text cut short. */
243
141
  export declare function summarizeTasks(value: unknown, maxInstructionLength?: number): AgentTask[];
@@ -246,54 +144,38 @@ declare const selectableModelSchema: z.ZodObject<{
246
144
  label: z.ZodOptional<z.ZodString>;
247
145
  inputCreditsPer1M: z.ZodOptional<z.ZodNumber>;
248
146
  outputCreditsPer1M: z.ZodOptional<z.ZodNumber>;
249
- }, "strip", z.ZodTypeAny, {
250
- slug: string;
251
- label?: string | undefined;
252
- inputCreditsPer1M?: number | undefined;
253
- outputCreditsPer1M?: number | undefined;
254
- }, {
255
- slug: string;
256
- label?: string | undefined;
257
- inputCreditsPer1M?: number | undefined;
258
- outputCreditsPer1M?: number | undefined;
259
- }>;
147
+ }, z.core.$strip>;
260
148
  type SelectableModel = z.infer<typeof selectableModelSchema>;
261
149
  export declare const extraCreditPackSchema: z.ZodObject<{
262
150
  pack: z.ZodString;
263
151
  credits: z.ZodNumber;
264
152
  priceUsd: z.ZodNumber;
265
- }, "strip", z.ZodTypeAny, {
266
- priceUsd: number;
267
- credits: number;
268
- pack: string;
269
- }, {
270
- priceUsd: number;
271
- credits: number;
272
- pack: string;
273
- }>;
153
+ }, z.core.$strip>;
274
154
  export declare const agentSummarySchema: z.ZodObject<{
275
155
  guid: z.ZodString;
276
156
  title: z.ZodString;
277
157
  status: z.ZodNullable<z.ZodNumber>;
278
- 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
+ }>;
279
168
  setupRequired: z.ZodBoolean;
280
- workspace: z.ZodEnum<["personal", "team"]>;
169
+ workspace: z.ZodEnum<{
170
+ team: "team";
171
+ personal: "personal";
172
+ }>;
281
173
  template: z.ZodObject<{
282
174
  custom: z.ZodBoolean;
283
175
  guid: z.ZodOptional<z.ZodString>;
284
176
  slug: z.ZodOptional<z.ZodString>;
285
177
  title: z.ZodOptional<z.ZodString>;
286
- }, "strip", z.ZodTypeAny, {
287
- custom: boolean;
288
- guid?: string | undefined;
289
- title?: string | undefined;
290
- slug?: string | undefined;
291
- }, {
292
- custom: boolean;
293
- guid?: string | undefined;
294
- title?: string | undefined;
295
- slug?: string | undefined;
296
- }>;
178
+ }, z.core.$strip>;
297
179
  tier: z.ZodOptional<z.ZodString>;
298
180
  monthlyPriceUsd: z.ZodNullable<z.ZodNumber>;
299
181
  credits: z.ZodObject<{
@@ -303,158 +185,57 @@ export declare const agentSummarySchema: z.ZodObject<{
303
185
  used: z.ZodNumber;
304
186
  remaining: z.ZodNumber;
305
187
  period: z.ZodOptional<z.ZodString>;
306
- }, "strip", z.ZodTypeAny, {
307
- monthly: number;
308
- extra: number;
309
- used: number;
310
- remaining: number;
311
- renewal?: number | undefined;
312
- period?: string | undefined;
313
- }, {
314
- monthly: number;
315
- extra: number;
316
- used: number;
317
- remaining: number;
318
- renewal?: number | undefined;
319
- period?: string | undefined;
320
- }>;
188
+ }, z.core.$strip>;
321
189
  subscription: z.ZodNullable<z.ZodObject<{
322
190
  status: z.ZodString;
323
- billing: z.ZodEnum<["wallet", "card"]>;
191
+ billing: z.ZodEnum<{
192
+ wallet: "wallet";
193
+ card: "card";
194
+ }>;
324
195
  switchingToWallet: z.ZodBoolean;
325
196
  amountUsd: z.ZodNullable<z.ZodNumber>;
326
197
  periodEndsAt: z.ZodOptional<z.ZodString>;
327
198
  daysRemaining: z.ZodNullable<z.ZodNumber>;
328
199
  cancelAtPeriodEnd: z.ZodBoolean;
329
- atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
330
- }, "strip", z.ZodTypeAny, {
331
- status: string;
332
- amountUsd: number | null;
333
- billing: "wallet" | "card";
334
- switchingToWallet: boolean;
335
- daysRemaining: number | null;
336
- cancelAtPeriodEnd: boolean;
337
- periodEndsAt?: string | undefined;
338
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
339
- }, {
340
- status: string;
341
- amountUsd: number | null;
342
- billing: "wallet" | "card";
343
- switchingToWallet: boolean;
344
- daysRemaining: number | null;
345
- cancelAtPeriodEnd: boolean;
346
- periodEndsAt?: string | undefined;
347
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
348
- }>>;
200
+ atPeriodEnd: z.ZodOptional<z.ZodEnum<{
201
+ unknown: "unknown";
202
+ renews: "renews";
203
+ ends: "ends";
204
+ }>>;
205
+ }, z.core.$strip>>;
349
206
  timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
207
  teamSessionMode: z.ZodOptional<z.ZodString>;
351
- skills: z.ZodArray<z.ZodString, "many">;
208
+ skills: z.ZodArray<z.ZodString>;
352
209
  createdAt: z.ZodOptional<z.ZodString>;
353
210
  updatedAt: z.ZodOptional<z.ZodString>;
354
211
  lastActivityAt: z.ZodOptional<z.ZodString>;
355
- }, "strip", z.ZodTypeAny, {
356
- guid: string;
357
- title: string;
358
- status: number | null;
359
- workspace: "team" | "personal";
360
- credits: {
361
- monthly: number;
362
- extra: number;
363
- used: number;
364
- remaining: number;
365
- renewal?: number | undefined;
366
- period?: string | undefined;
367
- };
368
- template: {
369
- custom: boolean;
370
- guid?: string | undefined;
371
- title?: string | undefined;
372
- slug?: string | undefined;
373
- };
374
- statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
375
- setupRequired: boolean;
376
- monthlyPriceUsd: number | null;
377
- subscription: {
378
- status: string;
379
- amountUsd: number | null;
380
- billing: "wallet" | "card";
381
- switchingToWallet: boolean;
382
- daysRemaining: number | null;
383
- cancelAtPeriodEnd: boolean;
384
- periodEndsAt?: string | undefined;
385
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
386
- } | null;
387
- skills: string[];
388
- createdAt?: string | undefined;
389
- updatedAt?: string | undefined;
390
- tier?: string | undefined;
391
- timezone?: string | null | undefined;
392
- teamSessionMode?: string | undefined;
393
- lastActivityAt?: string | undefined;
394
- }, {
395
- guid: string;
396
- title: string;
397
- status: number | null;
398
- workspace: "team" | "personal";
399
- credits: {
400
- monthly: number;
401
- extra: number;
402
- used: number;
403
- remaining: number;
404
- renewal?: number | undefined;
405
- period?: string | undefined;
406
- };
407
- template: {
408
- custom: boolean;
409
- guid?: string | undefined;
410
- title?: string | undefined;
411
- slug?: string | undefined;
412
- };
413
- statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
414
- setupRequired: boolean;
415
- monthlyPriceUsd: number | null;
416
- subscription: {
417
- status: string;
418
- amountUsd: number | null;
419
- billing: "wallet" | "card";
420
- switchingToWallet: boolean;
421
- daysRemaining: number | null;
422
- cancelAtPeriodEnd: boolean;
423
- periodEndsAt?: string | undefined;
424
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
425
- } | null;
426
- skills: string[];
427
- createdAt?: string | undefined;
428
- updatedAt?: string | undefined;
429
- tier?: string | undefined;
430
- timezone?: string | null | undefined;
431
- teamSessionMode?: string | undefined;
432
- lastActivityAt?: string | undefined;
433
- }>;
212
+ }, z.core.$strip>;
434
213
  export type AgentSummary = z.infer<typeof agentSummarySchema>;
435
214
  export declare const agentDetailSchema: z.ZodObject<{
436
215
  guid: z.ZodString;
437
216
  title: z.ZodString;
438
217
  status: z.ZodNullable<z.ZodNumber>;
439
- 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
+ }>;
440
228
  setupRequired: z.ZodBoolean;
441
- workspace: z.ZodEnum<["personal", "team"]>;
229
+ workspace: z.ZodEnum<{
230
+ team: "team";
231
+ personal: "personal";
232
+ }>;
442
233
  template: z.ZodObject<{
443
234
  custom: z.ZodBoolean;
444
235
  guid: z.ZodOptional<z.ZodString>;
445
236
  slug: z.ZodOptional<z.ZodString>;
446
237
  title: z.ZodOptional<z.ZodString>;
447
- }, "strip", z.ZodTypeAny, {
448
- custom: boolean;
449
- guid?: string | undefined;
450
- title?: string | undefined;
451
- slug?: string | undefined;
452
- }, {
453
- custom: boolean;
454
- guid?: string | undefined;
455
- title?: string | undefined;
456
- slug?: string | undefined;
457
- }>;
238
+ }, z.core.$strip>;
458
239
  tier: z.ZodOptional<z.ZodString>;
459
240
  monthlyPriceUsd: z.ZodNullable<z.ZodNumber>;
460
241
  credits: z.ZodObject<{
@@ -464,145 +245,61 @@ export declare const agentDetailSchema: z.ZodObject<{
464
245
  used: z.ZodNumber;
465
246
  remaining: z.ZodNumber;
466
247
  period: z.ZodOptional<z.ZodString>;
467
- }, "strip", z.ZodTypeAny, {
468
- monthly: number;
469
- extra: number;
470
- used: number;
471
- remaining: number;
472
- renewal?: number | undefined;
473
- period?: string | undefined;
474
- }, {
475
- monthly: number;
476
- extra: number;
477
- used: number;
478
- remaining: number;
479
- renewal?: number | undefined;
480
- period?: string | undefined;
481
- }>;
248
+ }, z.core.$strip>;
482
249
  subscription: z.ZodNullable<z.ZodObject<{
483
250
  status: z.ZodString;
484
- billing: z.ZodEnum<["wallet", "card"]>;
251
+ billing: z.ZodEnum<{
252
+ wallet: "wallet";
253
+ card: "card";
254
+ }>;
485
255
  switchingToWallet: z.ZodBoolean;
486
256
  amountUsd: z.ZodNullable<z.ZodNumber>;
487
257
  periodEndsAt: z.ZodOptional<z.ZodString>;
488
258
  daysRemaining: z.ZodNullable<z.ZodNumber>;
489
259
  cancelAtPeriodEnd: z.ZodBoolean;
490
- atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
491
- }, "strip", z.ZodTypeAny, {
492
- status: string;
493
- amountUsd: number | null;
494
- billing: "wallet" | "card";
495
- switchingToWallet: boolean;
496
- daysRemaining: number | null;
497
- cancelAtPeriodEnd: boolean;
498
- periodEndsAt?: string | undefined;
499
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
500
- }, {
501
- status: string;
502
- amountUsd: number | null;
503
- billing: "wallet" | "card";
504
- switchingToWallet: boolean;
505
- daysRemaining: number | null;
506
- cancelAtPeriodEnd: boolean;
507
- periodEndsAt?: string | undefined;
508
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
509
- }>>;
260
+ atPeriodEnd: z.ZodOptional<z.ZodEnum<{
261
+ unknown: "unknown";
262
+ renews: "renews";
263
+ ends: "ends";
264
+ }>>;
265
+ }, z.core.$strip>>;
510
266
  timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
511
267
  teamSessionMode: z.ZodOptional<z.ZodString>;
512
- skills: z.ZodArray<z.ZodString, "many">;
268
+ skills: z.ZodArray<z.ZodString>;
513
269
  createdAt: z.ZodOptional<z.ZodString>;
514
270
  updatedAt: z.ZodOptional<z.ZodString>;
515
271
  lastActivityAt: z.ZodOptional<z.ZodString>;
516
- } & {
517
272
  description: z.ZodOptional<z.ZodString>;
518
273
  cover: z.ZodOptional<z.ZodString>;
519
- categories: z.ZodArray<z.ZodString, "many">;
274
+ categories: z.ZodArray<z.ZodString>;
520
275
  pricing: z.ZodNullable<z.ZodObject<{
521
276
  starter: z.ZodObject<{
522
277
  priceUsd: z.ZodNumber;
523
278
  monthlyCredits: z.ZodNumber;
524
- }, "strip", z.ZodTypeAny, {
525
- priceUsd: number;
526
- monthlyCredits: number;
527
- }, {
528
- priceUsd: number;
529
- monthlyCredits: number;
530
- }>;
279
+ }, z.core.$strip>;
531
280
  pro: z.ZodObject<{
532
281
  priceUsd: z.ZodNumber;
533
282
  monthlyCredits: z.ZodNumber;
534
- }, "strip", z.ZodTypeAny, {
535
- priceUsd: number;
536
- monthlyCredits: number;
537
- }, {
538
- priceUsd: number;
539
- monthlyCredits: number;
540
- }>;
541
- }, "strip", z.ZodTypeAny, {
542
- starter: {
543
- priceUsd: number;
544
- monthlyCredits: number;
545
- };
546
- pro: {
547
- priceUsd: number;
548
- monthlyCredits: number;
549
- };
550
- }, {
551
- starter: {
552
- priceUsd: number;
553
- monthlyCredits: number;
554
- };
555
- pro: {
556
- priceUsd: number;
557
- monthlyCredits: number;
558
- };
559
- }>>;
283
+ }, z.core.$strip>;
284
+ }, z.core.$strip>>;
560
285
  extraCreditPacks: z.ZodArray<z.ZodObject<{
561
286
  pack: z.ZodString;
562
287
  credits: z.ZodNumber;
563
288
  priceUsd: z.ZodNumber;
564
- }, "strip", z.ZodTypeAny, {
565
- priceUsd: number;
566
- credits: number;
567
- pack: string;
568
- }, {
569
- priceUsd: number;
570
- credits: number;
571
- pack: string;
572
- }>, "many">;
289
+ }, z.core.$strip>>;
573
290
  models: z.ZodOptional<z.ZodObject<{
574
291
  chat: z.ZodNullable<z.ZodString>;
575
292
  cron: z.ZodNullable<z.ZodString>;
576
293
  voicePrep: z.ZodNullable<z.ZodString>;
577
294
  voicePostcall: z.ZodNullable<z.ZodString>;
578
- }, "strip", z.ZodTypeAny, {
579
- chat: string | null;
580
- cron: string | null;
581
- voicePrep: string | null;
582
- voicePostcall: string | null;
583
- }, {
584
- chat: string | null;
585
- cron: string | null;
586
- voicePrep: string | null;
587
- voicePostcall: string | null;
588
- }>>;
295
+ }, z.core.$strip>>;
589
296
  selectableModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
590
297
  slug: z.ZodString;
591
298
  label: z.ZodOptional<z.ZodString>;
592
299
  inputCreditsPer1M: z.ZodOptional<z.ZodNumber>;
593
300
  outputCreditsPer1M: z.ZodOptional<z.ZodNumber>;
594
- }, "strip", z.ZodTypeAny, {
595
- slug: string;
596
- label?: string | undefined;
597
- inputCreditsPer1M?: number | undefined;
598
- outputCreditsPer1M?: number | undefined;
599
- }, {
600
- slug: string;
601
- label?: string | undefined;
602
- inputCreditsPer1M?: number | undefined;
603
- outputCreditsPer1M?: number | undefined;
604
- }>, "many">>;
605
- enabledCommands: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
301
+ }, z.core.$strip>>>;
302
+ enabledCommands: z.ZodNullable<z.ZodArray<z.ZodString>>;
606
303
  credentials: z.ZodArray<z.ZodObject<{
607
304
  key: z.ZodString;
608
305
  title: z.ZodString;
@@ -611,412 +308,88 @@ export declare const agentDetailSchema: z.ZodObject<{
611
308
  connected: z.ZodBoolean;
612
309
  filled: z.ZodBoolean;
613
310
  requiredMissing: z.ZodBoolean;
614
- }, "strip", z.ZodTypeAny, {
615
- key: string;
616
- optional: boolean;
617
- title: string;
618
- oauth: boolean;
619
- connected: boolean;
620
- filled: boolean;
621
- requiredMissing: boolean;
622
- }, {
623
- key: string;
624
- optional: boolean;
625
- title: string;
626
- oauth: boolean;
627
- connected: boolean;
628
- filled: boolean;
629
- requiredMissing: boolean;
630
- }>, "many">;
311
+ }, z.core.$strip>>;
631
312
  missingCredentials: z.ZodArray<z.ZodObject<{
632
313
  key: z.ZodString;
633
314
  title: z.ZodString;
634
315
  oauth: z.ZodBoolean;
635
- }, "strip", z.ZodTypeAny, {
636
- key: string;
637
- title: string;
638
- oauth: boolean;
639
- }, {
640
- key: string;
641
- title: string;
642
- oauth: boolean;
643
- }>, "many">;
316
+ }, z.core.$strip>>;
644
317
  channels: z.ZodArray<z.ZodObject<{
645
318
  id: z.ZodString;
646
319
  title: z.ZodString;
647
320
  credentialKey: z.ZodString;
648
321
  enabled: z.ZodBoolean;
649
322
  configured: z.ZodBoolean;
650
- missingFields: z.ZodArray<z.ZodString, "many">;
651
- }, "strip", z.ZodTypeAny, {
652
- id: string;
653
- title: string;
654
- credentialKey: string;
655
- enabled: boolean;
656
- configured: boolean;
657
- missingFields: string[];
658
- }, {
659
- id: string;
660
- title: string;
661
- credentialKey: string;
662
- enabled: boolean;
663
- configured: boolean;
664
- missingFields: string[];
665
- }>, "many">;
323
+ missingFields: z.ZodArray<z.ZodString>;
324
+ }, z.core.$strip>>;
666
325
  scheduledTasks: z.ZodArray<z.ZodObject<{
667
326
  key: z.ZodString;
668
327
  description: z.ZodOptional<z.ZodString>;
669
328
  enabled: z.ZodBoolean;
670
329
  notWritten: z.ZodOptional<z.ZodBoolean>;
671
- ownerSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
330
+ ownerSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
672
331
  skillOff: z.ZodOptional<z.ZodBoolean>;
673
- offSkills: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
332
+ offSkills: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
674
333
  interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
675
- source: z.ZodOptional<z.ZodEnum<["template", "skill", "user"]>>;
334
+ source: z.ZodOptional<z.ZodEnum<{
335
+ user: "user";
336
+ template: "template";
337
+ skill: "skill";
338
+ }>>;
676
339
  instructions: z.ZodOptional<z.ZodString>;
677
340
  instructionsTruncated: z.ZodOptional<z.ZodBoolean>;
678
- }, "strip", z.ZodTypeAny, {
679
- key: string;
680
- enabled: boolean;
681
- instructions?: string | undefined;
682
- description?: string | undefined;
683
- notWritten?: boolean | undefined;
684
- ownerSkills?: string[] | undefined;
685
- skillOff?: boolean | undefined;
686
- offSkills?: string[][] | undefined;
687
- interval?: string | null | undefined;
688
- source?: "user" | "template" | "skill" | undefined;
689
- instructionsTruncated?: boolean | undefined;
690
- }, {
691
- key: string;
692
- enabled: boolean;
693
- instructions?: string | undefined;
694
- description?: string | undefined;
695
- notWritten?: boolean | undefined;
696
- ownerSkills?: string[] | undefined;
697
- skillOff?: boolean | undefined;
698
- offSkills?: string[][] | undefined;
699
- interval?: string | null | undefined;
700
- source?: "user" | "template" | "skill" | undefined;
701
- instructionsTruncated?: boolean | undefined;
702
- }>, "many">;
341
+ }, z.core.$strip>>;
703
342
  customInstructions: z.ZodArray<z.ZodObject<{
704
343
  key: z.ZodString;
705
344
  description: z.ZodOptional<z.ZodString>;
706
345
  enabled: z.ZodBoolean;
707
346
  notWritten: z.ZodOptional<z.ZodBoolean>;
708
- ownerSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
347
+ ownerSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
709
348
  skillOff: z.ZodOptional<z.ZodBoolean>;
710
- offSkills: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
349
+ offSkills: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
711
350
  interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
712
- source: z.ZodOptional<z.ZodEnum<["template", "skill", "user"]>>;
351
+ source: z.ZodOptional<z.ZodEnum<{
352
+ user: "user";
353
+ template: "template";
354
+ skill: "skill";
355
+ }>>;
713
356
  instructions: z.ZodOptional<z.ZodString>;
714
357
  instructionsTruncated: z.ZodOptional<z.ZodBoolean>;
715
- }, "strip", z.ZodTypeAny, {
716
- key: string;
717
- enabled: boolean;
718
- instructions?: string | undefined;
719
- description?: string | undefined;
720
- notWritten?: boolean | undefined;
721
- ownerSkills?: string[] | undefined;
722
- skillOff?: boolean | undefined;
723
- offSkills?: string[][] | undefined;
724
- interval?: string | null | undefined;
725
- source?: "user" | "template" | "skill" | undefined;
726
- instructionsTruncated?: boolean | undefined;
727
- }, {
728
- key: string;
729
- enabled: boolean;
730
- instructions?: string | undefined;
731
- description?: string | undefined;
732
- notWritten?: boolean | undefined;
733
- ownerSkills?: string[] | undefined;
734
- skillOff?: boolean | undefined;
735
- offSkills?: string[][] | undefined;
736
- interval?: string | null | undefined;
737
- source?: "user" | "template" | "skill" | undefined;
738
- instructionsTruncated?: boolean | undefined;
739
- }>, "many">;
358
+ }, z.core.$strip>>;
740
359
  queuedAt: z.ZodOptional<z.ZodString>;
741
360
  startedAt: z.ZodOptional<z.ZodString>;
742
361
  runningAt: z.ZodOptional<z.ZodString>;
743
362
  stoppedAt: z.ZodOptional<z.ZodString>;
744
363
  erroredAt: z.ZodOptional<z.ZodString>;
745
364
  dashboardUrl: z.ZodString;
746
- }, "strip", z.ZodTypeAny, {
747
- categories: string[];
748
- guid: string;
749
- title: string;
750
- status: number | null;
751
- pricing: {
752
- starter: {
753
- priceUsd: number;
754
- monthlyCredits: number;
755
- };
756
- pro: {
757
- priceUsd: number;
758
- monthlyCredits: number;
759
- };
760
- } | null;
761
- workspace: "team" | "personal";
762
- credits: {
763
- monthly: number;
764
- extra: number;
765
- used: number;
766
- remaining: number;
767
- renewal?: number | undefined;
768
- period?: string | undefined;
769
- };
770
- template: {
771
- custom: boolean;
772
- guid?: string | undefined;
773
- title?: string | undefined;
774
- slug?: string | undefined;
775
- };
776
- statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
777
- setupRequired: boolean;
778
- monthlyPriceUsd: number | null;
779
- subscription: {
780
- status: string;
781
- amountUsd: number | null;
782
- billing: "wallet" | "card";
783
- switchingToWallet: boolean;
784
- daysRemaining: number | null;
785
- cancelAtPeriodEnd: boolean;
786
- periodEndsAt?: string | undefined;
787
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
788
- } | null;
789
- skills: string[];
790
- extraCreditPacks: {
791
- priceUsd: number;
792
- credits: number;
793
- pack: string;
794
- }[];
795
- enabledCommands: string[] | null;
796
- credentials: {
797
- key: string;
798
- optional: boolean;
799
- title: string;
800
- oauth: boolean;
801
- connected: boolean;
802
- filled: boolean;
803
- requiredMissing: boolean;
804
- }[];
805
- missingCredentials: {
806
- key: string;
807
- title: string;
808
- oauth: boolean;
809
- }[];
810
- channels: {
811
- id: string;
812
- title: string;
813
- credentialKey: string;
814
- enabled: boolean;
815
- configured: boolean;
816
- missingFields: string[];
817
- }[];
818
- scheduledTasks: {
819
- key: string;
820
- enabled: boolean;
821
- instructions?: string | undefined;
822
- description?: string | undefined;
823
- notWritten?: boolean | undefined;
824
- ownerSkills?: string[] | undefined;
825
- skillOff?: boolean | undefined;
826
- offSkills?: string[][] | undefined;
827
- interval?: string | null | undefined;
828
- source?: "user" | "template" | "skill" | undefined;
829
- instructionsTruncated?: boolean | undefined;
830
- }[];
831
- customInstructions: {
832
- key: string;
833
- enabled: boolean;
834
- instructions?: string | undefined;
835
- description?: string | undefined;
836
- notWritten?: boolean | undefined;
837
- ownerSkills?: string[] | undefined;
838
- skillOff?: boolean | undefined;
839
- offSkills?: string[][] | undefined;
840
- interval?: string | null | undefined;
841
- source?: "user" | "template" | "skill" | undefined;
842
- instructionsTruncated?: boolean | undefined;
843
- }[];
844
- dashboardUrl: string;
845
- description?: string | undefined;
846
- createdAt?: string | undefined;
847
- models?: {
848
- chat: string | null;
849
- cron: string | null;
850
- voicePrep: string | null;
851
- voicePostcall: string | null;
852
- } | undefined;
853
- cover?: string | undefined;
854
- updatedAt?: string | undefined;
855
- startedAt?: string | undefined;
856
- tier?: string | undefined;
857
- timezone?: string | null | undefined;
858
- teamSessionMode?: string | undefined;
859
- lastActivityAt?: string | undefined;
860
- selectableModels?: {
861
- slug: string;
862
- label?: string | undefined;
863
- inputCreditsPer1M?: number | undefined;
864
- outputCreditsPer1M?: number | undefined;
865
- }[] | undefined;
866
- queuedAt?: string | undefined;
867
- runningAt?: string | undefined;
868
- stoppedAt?: string | undefined;
869
- erroredAt?: string | undefined;
870
- }, {
871
- categories: string[];
872
- guid: string;
873
- title: string;
874
- status: number | null;
875
- pricing: {
876
- starter: {
877
- priceUsd: number;
878
- monthlyCredits: number;
879
- };
880
- pro: {
881
- priceUsd: number;
882
- monthlyCredits: number;
883
- };
884
- } | null;
885
- workspace: "team" | "personal";
886
- credits: {
887
- monthly: number;
888
- extra: number;
889
- used: number;
890
- remaining: number;
891
- renewal?: number | undefined;
892
- period?: string | undefined;
893
- };
894
- template: {
895
- custom: boolean;
896
- guid?: string | undefined;
897
- title?: string | undefined;
898
- slug?: string | undefined;
899
- };
900
- statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
901
- setupRequired: boolean;
902
- monthlyPriceUsd: number | null;
903
- subscription: {
904
- status: string;
905
- amountUsd: number | null;
906
- billing: "wallet" | "card";
907
- switchingToWallet: boolean;
908
- daysRemaining: number | null;
909
- cancelAtPeriodEnd: boolean;
910
- periodEndsAt?: string | undefined;
911
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
912
- } | null;
913
- skills: string[];
914
- extraCreditPacks: {
915
- priceUsd: number;
916
- credits: number;
917
- pack: string;
918
- }[];
919
- enabledCommands: string[] | null;
920
- credentials: {
921
- key: string;
922
- optional: boolean;
923
- title: string;
924
- oauth: boolean;
925
- connected: boolean;
926
- filled: boolean;
927
- requiredMissing: boolean;
928
- }[];
929
- missingCredentials: {
930
- key: string;
931
- title: string;
932
- oauth: boolean;
933
- }[];
934
- channels: {
935
- id: string;
936
- title: string;
937
- credentialKey: string;
938
- enabled: boolean;
939
- configured: boolean;
940
- missingFields: string[];
941
- }[];
942
- scheduledTasks: {
943
- key: string;
944
- enabled: boolean;
945
- instructions?: string | undefined;
946
- description?: string | undefined;
947
- notWritten?: boolean | undefined;
948
- ownerSkills?: string[] | undefined;
949
- skillOff?: boolean | undefined;
950
- offSkills?: string[][] | undefined;
951
- interval?: string | null | undefined;
952
- source?: "user" | "template" | "skill" | undefined;
953
- instructionsTruncated?: boolean | undefined;
954
- }[];
955
- customInstructions: {
956
- key: string;
957
- enabled: boolean;
958
- instructions?: string | undefined;
959
- description?: string | undefined;
960
- notWritten?: boolean | undefined;
961
- ownerSkills?: string[] | undefined;
962
- skillOff?: boolean | undefined;
963
- offSkills?: string[][] | undefined;
964
- interval?: string | null | undefined;
965
- source?: "user" | "template" | "skill" | undefined;
966
- instructionsTruncated?: boolean | undefined;
967
- }[];
968
- dashboardUrl: string;
969
- description?: string | undefined;
970
- createdAt?: string | undefined;
971
- models?: {
972
- chat: string | null;
973
- cron: string | null;
974
- voicePrep: string | null;
975
- voicePostcall: string | null;
976
- } | undefined;
977
- cover?: string | undefined;
978
- updatedAt?: string | undefined;
979
- startedAt?: string | undefined;
980
- tier?: string | undefined;
981
- timezone?: string | null | undefined;
982
- teamSessionMode?: string | undefined;
983
- lastActivityAt?: string | undefined;
984
- selectableModels?: {
985
- slug: string;
986
- label?: string | undefined;
987
- inputCreditsPer1M?: number | undefined;
988
- outputCreditsPer1M?: number | undefined;
989
- }[] | undefined;
990
- queuedAt?: string | undefined;
991
- runningAt?: string | undefined;
992
- stoppedAt?: string | undefined;
993
- erroredAt?: string | undefined;
994
- }>;
365
+ }, z.core.$strip>;
995
366
  export type AgentDetail = z.infer<typeof agentDetailSchema>;
996
367
  /** The part of a new agent that matters right after deploying it. */
997
368
  export declare const deployedAgentSchema: z.ZodObject<{
998
369
  guid: z.ZodString;
999
370
  title: z.ZodString;
1000
371
  status: z.ZodNullable<z.ZodNumber>;
1001
- 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
+ }>;
1002
382
  setupRequired: z.ZodBoolean;
1003
- workspace: z.ZodEnum<["personal", "team"]>;
383
+ workspace: z.ZodEnum<{
384
+ team: "team";
385
+ personal: "personal";
386
+ }>;
1004
387
  template: z.ZodObject<{
1005
388
  custom: z.ZodBoolean;
1006
389
  guid: z.ZodOptional<z.ZodString>;
1007
390
  slug: z.ZodOptional<z.ZodString>;
1008
391
  title: z.ZodOptional<z.ZodString>;
1009
- }, "strip", z.ZodTypeAny, {
1010
- custom: boolean;
1011
- guid?: string | undefined;
1012
- title?: string | undefined;
1013
- slug?: string | undefined;
1014
- }, {
1015
- custom: boolean;
1016
- guid?: string | undefined;
1017
- title?: string | undefined;
1018
- slug?: string | undefined;
1019
- }>;
392
+ }, z.core.$strip>;
1020
393
  tier: z.ZodOptional<z.ZodString>;
1021
394
  monthlyPriceUsd: z.ZodNullable<z.ZodNumber>;
1022
395
  credits: z.ZodObject<{
@@ -1026,199 +399,45 @@ export declare const deployedAgentSchema: z.ZodObject<{
1026
399
  used: z.ZodNumber;
1027
400
  remaining: z.ZodNumber;
1028
401
  period: z.ZodOptional<z.ZodString>;
1029
- }, "strip", z.ZodTypeAny, {
1030
- monthly: number;
1031
- extra: number;
1032
- used: number;
1033
- remaining: number;
1034
- renewal?: number | undefined;
1035
- period?: string | undefined;
1036
- }, {
1037
- monthly: number;
1038
- extra: number;
1039
- used: number;
1040
- remaining: number;
1041
- renewal?: number | undefined;
1042
- period?: string | undefined;
1043
- }>;
402
+ }, z.core.$strip>;
1044
403
  subscription: z.ZodNullable<z.ZodObject<{
1045
404
  status: z.ZodString;
1046
- billing: z.ZodEnum<["wallet", "card"]>;
405
+ billing: z.ZodEnum<{
406
+ wallet: "wallet";
407
+ card: "card";
408
+ }>;
1047
409
  switchingToWallet: z.ZodBoolean;
1048
410
  amountUsd: z.ZodNullable<z.ZodNumber>;
1049
411
  periodEndsAt: z.ZodOptional<z.ZodString>;
1050
412
  daysRemaining: z.ZodNullable<z.ZodNumber>;
1051
413
  cancelAtPeriodEnd: z.ZodBoolean;
1052
- atPeriodEnd: z.ZodOptional<z.ZodEnum<["renews", "ends", "unknown"]>>;
1053
- }, "strip", z.ZodTypeAny, {
1054
- status: string;
1055
- amountUsd: number | null;
1056
- billing: "wallet" | "card";
1057
- switchingToWallet: boolean;
1058
- daysRemaining: number | null;
1059
- cancelAtPeriodEnd: boolean;
1060
- periodEndsAt?: string | undefined;
1061
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
1062
- }, {
1063
- status: string;
1064
- amountUsd: number | null;
1065
- billing: "wallet" | "card";
1066
- switchingToWallet: boolean;
1067
- daysRemaining: number | null;
1068
- cancelAtPeriodEnd: boolean;
1069
- periodEndsAt?: string | undefined;
1070
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
1071
- }>>;
414
+ atPeriodEnd: z.ZodOptional<z.ZodEnum<{
415
+ unknown: "unknown";
416
+ renews: "renews";
417
+ ends: "ends";
418
+ }>>;
419
+ }, z.core.$strip>>;
1072
420
  timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1073
421
  teamSessionMode: z.ZodOptional<z.ZodString>;
1074
- skills: z.ZodArray<z.ZodString, "many">;
422
+ skills: z.ZodArray<z.ZodString>;
1075
423
  createdAt: z.ZodOptional<z.ZodString>;
1076
424
  updatedAt: z.ZodOptional<z.ZodString>;
1077
425
  lastActivityAt: z.ZodOptional<z.ZodString>;
1078
- } & {
1079
426
  missingCredentials: z.ZodArray<z.ZodObject<{
1080
427
  key: z.ZodString;
1081
428
  title: z.ZodString;
1082
429
  oauth: z.ZodBoolean;
1083
- }, "strip", z.ZodTypeAny, {
1084
- key: string;
1085
- title: string;
1086
- oauth: boolean;
1087
- }, {
1088
- key: string;
1089
- title: string;
1090
- oauth: boolean;
1091
- }>, "many">;
430
+ }, z.core.$strip>>;
1092
431
  channels: z.ZodArray<z.ZodObject<{
1093
432
  id: z.ZodString;
1094
433
  title: z.ZodString;
1095
434
  credentialKey: z.ZodString;
1096
435
  enabled: z.ZodBoolean;
1097
436
  configured: z.ZodBoolean;
1098
- missingFields: z.ZodArray<z.ZodString, "many">;
1099
- }, "strip", z.ZodTypeAny, {
1100
- id: string;
1101
- title: string;
1102
- credentialKey: string;
1103
- enabled: boolean;
1104
- configured: boolean;
1105
- missingFields: string[];
1106
- }, {
1107
- id: string;
1108
- title: string;
1109
- credentialKey: string;
1110
- enabled: boolean;
1111
- configured: boolean;
1112
- missingFields: string[];
1113
- }>, "many">;
437
+ missingFields: z.ZodArray<z.ZodString>;
438
+ }, z.core.$strip>>;
1114
439
  dashboardUrl: z.ZodString;
1115
- }, "strip", z.ZodTypeAny, {
1116
- guid: string;
1117
- title: string;
1118
- status: number | null;
1119
- workspace: "team" | "personal";
1120
- credits: {
1121
- monthly: number;
1122
- extra: number;
1123
- used: number;
1124
- remaining: number;
1125
- renewal?: number | undefined;
1126
- period?: string | undefined;
1127
- };
1128
- template: {
1129
- custom: boolean;
1130
- guid?: string | undefined;
1131
- title?: string | undefined;
1132
- slug?: string | undefined;
1133
- };
1134
- statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
1135
- setupRequired: boolean;
1136
- monthlyPriceUsd: number | null;
1137
- subscription: {
1138
- status: string;
1139
- amountUsd: number | null;
1140
- billing: "wallet" | "card";
1141
- switchingToWallet: boolean;
1142
- daysRemaining: number | null;
1143
- cancelAtPeriodEnd: boolean;
1144
- periodEndsAt?: string | undefined;
1145
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
1146
- } | null;
1147
- skills: string[];
1148
- missingCredentials: {
1149
- key: string;
1150
- title: string;
1151
- oauth: boolean;
1152
- }[];
1153
- channels: {
1154
- id: string;
1155
- title: string;
1156
- credentialKey: string;
1157
- enabled: boolean;
1158
- configured: boolean;
1159
- missingFields: string[];
1160
- }[];
1161
- dashboardUrl: string;
1162
- createdAt?: string | undefined;
1163
- updatedAt?: string | undefined;
1164
- tier?: string | undefined;
1165
- timezone?: string | null | undefined;
1166
- teamSessionMode?: string | undefined;
1167
- lastActivityAt?: string | undefined;
1168
- }, {
1169
- guid: string;
1170
- title: string;
1171
- status: number | null;
1172
- workspace: "team" | "personal";
1173
- credits: {
1174
- monthly: number;
1175
- extra: number;
1176
- used: number;
1177
- remaining: number;
1178
- renewal?: number | undefined;
1179
- period?: string | undefined;
1180
- };
1181
- template: {
1182
- custom: boolean;
1183
- guid?: string | undefined;
1184
- title?: string | undefined;
1185
- slug?: string | undefined;
1186
- };
1187
- statusLabel: "error" | "running" | "unknown" | "stopped" | "stopping" | "queued" | "starting" | "setup_required";
1188
- setupRequired: boolean;
1189
- monthlyPriceUsd: number | null;
1190
- subscription: {
1191
- status: string;
1192
- amountUsd: number | null;
1193
- billing: "wallet" | "card";
1194
- switchingToWallet: boolean;
1195
- daysRemaining: number | null;
1196
- cancelAtPeriodEnd: boolean;
1197
- periodEndsAt?: string | undefined;
1198
- atPeriodEnd?: "unknown" | "renews" | "ends" | undefined;
1199
- } | null;
1200
- skills: string[];
1201
- missingCredentials: {
1202
- key: string;
1203
- title: string;
1204
- oauth: boolean;
1205
- }[];
1206
- channels: {
1207
- id: string;
1208
- title: string;
1209
- credentialKey: string;
1210
- enabled: boolean;
1211
- configured: boolean;
1212
- missingFields: string[];
1213
- }[];
1214
- dashboardUrl: string;
1215
- createdAt?: string | undefined;
1216
- updatedAt?: string | undefined;
1217
- tier?: string | undefined;
1218
- timezone?: string | null | undefined;
1219
- teamSessionMode?: string | undefined;
1220
- lastActivityAt?: string | undefined;
1221
- }>;
440
+ }, z.core.$strip>;
1222
441
  export type DeployedAgent = z.infer<typeof deployedAgentSchema>;
1223
442
  export declare function toDeployedAgent(agent: AgentDetail): DeployedAgent;
1224
443
  /** The compact row used by list_my_agents. */