@vm0/cli 9.84.0 → 9.84.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.
- package/{chunk-T4MRFLKK.js → chunk-UTY3UDKG.js} +201 -154
- package/chunk-UTY3UDKG.js.map +1 -0
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +42 -14
- package/zero.js.map +1 -1
- package/chunk-T4MRFLKK.js.map +0 -1
|
@@ -47,7 +47,7 @@ if (DSN) {
|
|
|
47
47
|
Sentry.init({
|
|
48
48
|
dsn: DSN,
|
|
49
49
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
50
|
-
release: "9.84.
|
|
50
|
+
release: "9.84.2",
|
|
51
51
|
sendDefaultPii: false,
|
|
52
52
|
tracesSampleRate: 0,
|
|
53
53
|
shutdownTimeout: 500,
|
|
@@ -66,7 +66,7 @@ if (DSN) {
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
Sentry.setContext("cli", {
|
|
69
|
-
version: "9.84.
|
|
69
|
+
version: "9.84.2",
|
|
70
70
|
command: process.argv.slice(2).join(" ")
|
|
71
71
|
});
|
|
72
72
|
Sentry.setContext("runtime", {
|
|
@@ -8820,7 +8820,7 @@ var zeptomailFirewall = {
|
|
|
8820
8820
|
};
|
|
8821
8821
|
|
|
8822
8822
|
// ../../packages/core/src/firewalls/index.ts
|
|
8823
|
-
var
|
|
8823
|
+
var CONNECTOR_FIREWALLS = {
|
|
8824
8824
|
agentmail: agentmailFirewall,
|
|
8825
8825
|
ahrefs: ahrefsFirewall,
|
|
8826
8826
|
airtable: airtableFirewall,
|
|
@@ -8925,6 +8925,12 @@ var builtinFirewalls = {
|
|
|
8925
8925
|
zapsign: zapsignFirewall,
|
|
8926
8926
|
zeptomail: zeptomailFirewall
|
|
8927
8927
|
};
|
|
8928
|
+
function isFirewallConnectorType(type) {
|
|
8929
|
+
return type in CONNECTOR_FIREWALLS;
|
|
8930
|
+
}
|
|
8931
|
+
function getConnectorFirewall(type) {
|
|
8932
|
+
return CONNECTOR_FIREWALLS[type];
|
|
8933
|
+
}
|
|
8928
8934
|
|
|
8929
8935
|
// ../../packages/core/src/firewall-loader.ts
|
|
8930
8936
|
var MAX_RESPONSE_SIZE = 128 * 1024;
|
|
@@ -8939,7 +8945,7 @@ function buildFirewallYamlUrl(ref) {
|
|
|
8939
8945
|
}
|
|
8940
8946
|
async function fetchFirewallConfig(ref, fetchFn = fetch) {
|
|
8941
8947
|
const trimmed = ref.trim();
|
|
8942
|
-
const builtin = !trimmed.includes("/") ?
|
|
8948
|
+
const builtin = !trimmed.includes("/") && isFirewallConnectorType(trimmed) ? getConnectorFirewall(trimmed) : void 0;
|
|
8943
8949
|
if (builtin) {
|
|
8944
8950
|
return builtin;
|
|
8945
8951
|
}
|
|
@@ -11409,54 +11415,170 @@ var updateModelRequestSchema = z16.object({
|
|
|
11409
11415
|
});
|
|
11410
11416
|
|
|
11411
11417
|
// ../../packages/core/src/contracts/sessions.ts
|
|
11418
|
+
import { z as z18 } from "zod";
|
|
11419
|
+
|
|
11420
|
+
// ../../packages/core/src/contracts/chat-threads.ts
|
|
11412
11421
|
import { z as z17 } from "zod";
|
|
11413
11422
|
var c10 = initContract();
|
|
11423
|
+
var chatThreadListItemSchema = z17.object({
|
|
11424
|
+
id: z17.string(),
|
|
11425
|
+
title: z17.string().nullable(),
|
|
11426
|
+
preview: z17.string().nullable(),
|
|
11427
|
+
agentId: z17.string(),
|
|
11428
|
+
createdAt: z17.string(),
|
|
11429
|
+
updatedAt: z17.string()
|
|
11430
|
+
});
|
|
11431
|
+
var toolSummaryEntrySchema = z17.object({
|
|
11432
|
+
kind: z17.literal("tool"),
|
|
11433
|
+
name: z17.string(),
|
|
11434
|
+
input: z17.record(z17.string(), z17.unknown()).optional()
|
|
11435
|
+
});
|
|
11436
|
+
var textSummaryEntrySchema = z17.object({
|
|
11437
|
+
kind: z17.literal("text"),
|
|
11438
|
+
text: z17.string()
|
|
11439
|
+
});
|
|
11440
|
+
var summaryEntrySchema = z17.union([
|
|
11441
|
+
z17.string(),
|
|
11442
|
+
toolSummaryEntrySchema,
|
|
11443
|
+
textSummaryEntrySchema
|
|
11444
|
+
]);
|
|
11414
11445
|
var storedChatMessageSchema = z17.object({
|
|
11415
11446
|
role: z17.enum(["user", "assistant"]),
|
|
11416
11447
|
content: z17.string(),
|
|
11417
11448
|
runId: z17.string().optional(),
|
|
11418
|
-
|
|
11449
|
+
error: z17.string().optional(),
|
|
11450
|
+
summaries: z17.array(summaryEntrySchema).optional(),
|
|
11419
11451
|
createdAt: z17.string()
|
|
11420
11452
|
});
|
|
11421
|
-
var
|
|
11453
|
+
var unsavedRunSchema = z17.object({
|
|
11454
|
+
runId: z17.string(),
|
|
11455
|
+
status: z17.string(),
|
|
11456
|
+
prompt: z17.string(),
|
|
11457
|
+
error: z17.string().nullable()
|
|
11458
|
+
});
|
|
11459
|
+
var chatThreadDetailSchema = z17.object({
|
|
11422
11460
|
id: z17.string(),
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11461
|
+
title: z17.string().nullable(),
|
|
11462
|
+
agentId: z17.string(),
|
|
11463
|
+
chatMessages: z17.array(storedChatMessageSchema),
|
|
11464
|
+
latestSessionId: z17.string().nullable(),
|
|
11465
|
+
unsavedRuns: z17.array(unsavedRunSchema),
|
|
11428
11466
|
createdAt: z17.string(),
|
|
11429
11467
|
updatedAt: z17.string()
|
|
11430
11468
|
});
|
|
11431
|
-
var
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11469
|
+
var chatThreadsContract = c10.router({
|
|
11470
|
+
create: {
|
|
11471
|
+
method: "POST",
|
|
11472
|
+
path: "/api/zero/chat-threads",
|
|
11473
|
+
headers: authHeadersSchema,
|
|
11474
|
+
body: z17.object({
|
|
11475
|
+
agentId: z17.string().min(1),
|
|
11476
|
+
title: z17.string().optional()
|
|
11477
|
+
}),
|
|
11478
|
+
responses: {
|
|
11479
|
+
201: z17.object({
|
|
11480
|
+
id: z17.string(),
|
|
11481
|
+
title: z17.string().nullable(),
|
|
11482
|
+
createdAt: z17.string()
|
|
11483
|
+
}),
|
|
11484
|
+
401: apiErrorSchema
|
|
11485
|
+
},
|
|
11486
|
+
summary: "Create a new chat thread"
|
|
11487
|
+
},
|
|
11488
|
+
list: {
|
|
11489
|
+
method: "GET",
|
|
11490
|
+
path: "/api/zero/chat-threads",
|
|
11491
|
+
headers: authHeadersSchema,
|
|
11492
|
+
query: z17.object({
|
|
11493
|
+
agentId: z17.string().min(1, "agentId is required")
|
|
11494
|
+
}),
|
|
11495
|
+
responses: {
|
|
11496
|
+
200: z17.object({ threads: z17.array(chatThreadListItemSchema) }),
|
|
11497
|
+
401: apiErrorSchema
|
|
11498
|
+
},
|
|
11499
|
+
summary: "List chat threads for an agent"
|
|
11500
|
+
}
|
|
11501
|
+
});
|
|
11502
|
+
var chatThreadByIdContract = c10.router({
|
|
11503
|
+
get: {
|
|
11504
|
+
method: "GET",
|
|
11505
|
+
path: "/api/zero/chat-threads/:id",
|
|
11506
|
+
headers: authHeadersSchema,
|
|
11507
|
+
pathParams: z17.object({ id: z17.string() }),
|
|
11508
|
+
responses: {
|
|
11509
|
+
200: chatThreadDetailSchema,
|
|
11510
|
+
401: apiErrorSchema,
|
|
11511
|
+
404: apiErrorSchema
|
|
11512
|
+
},
|
|
11513
|
+
summary: "Get chat thread detail with messages"
|
|
11514
|
+
}
|
|
11515
|
+
});
|
|
11516
|
+
var chatThreadRunsContract = c10.router({
|
|
11517
|
+
addRun: {
|
|
11518
|
+
method: "POST",
|
|
11519
|
+
path: "/api/zero/chat-threads/:id/runs",
|
|
11520
|
+
headers: authHeadersSchema,
|
|
11521
|
+
pathParams: z17.object({ id: z17.string() }),
|
|
11522
|
+
body: z17.object({
|
|
11523
|
+
runId: z17.string().min(1)
|
|
11524
|
+
}),
|
|
11525
|
+
responses: {
|
|
11526
|
+
204: c10.noBody(),
|
|
11527
|
+
401: apiErrorSchema,
|
|
11528
|
+
404: apiErrorSchema
|
|
11529
|
+
},
|
|
11530
|
+
summary: "Associate a run to a chat thread"
|
|
11531
|
+
}
|
|
11532
|
+
});
|
|
11533
|
+
|
|
11534
|
+
// ../../packages/core/src/contracts/sessions.ts
|
|
11535
|
+
var c11 = initContract();
|
|
11536
|
+
var storedChatMessageSchema2 = z18.object({
|
|
11537
|
+
role: z18.enum(["user", "assistant"]),
|
|
11538
|
+
content: z18.string(),
|
|
11539
|
+
runId: z18.string().optional(),
|
|
11540
|
+
summaries: z18.array(summaryEntrySchema).optional(),
|
|
11541
|
+
createdAt: z18.string()
|
|
11542
|
+
});
|
|
11543
|
+
var sessionResponseSchema = z18.object({
|
|
11544
|
+
id: z18.string(),
|
|
11545
|
+
agentComposeId: z18.string(),
|
|
11546
|
+
conversationId: z18.string().nullable(),
|
|
11547
|
+
artifactName: z18.string().nullable(),
|
|
11548
|
+
secretNames: z18.array(z18.string()).nullable(),
|
|
11549
|
+
chatMessages: z18.array(storedChatMessageSchema2).optional(),
|
|
11550
|
+
createdAt: z18.string(),
|
|
11551
|
+
updatedAt: z18.string()
|
|
11437
11552
|
});
|
|
11438
|
-
var
|
|
11439
|
-
|
|
11440
|
-
|
|
11441
|
-
|
|
11553
|
+
var sessionListItemSchema = z18.object({
|
|
11554
|
+
id: z18.string(),
|
|
11555
|
+
createdAt: z18.string(),
|
|
11556
|
+
updatedAt: z18.string(),
|
|
11557
|
+
messageCount: z18.number(),
|
|
11558
|
+
preview: z18.string().nullable()
|
|
11442
11559
|
});
|
|
11443
|
-
var
|
|
11444
|
-
|
|
11445
|
-
|
|
11560
|
+
var agentComposeSnapshotSchema = z18.object({
|
|
11561
|
+
agentComposeVersionId: z18.string(),
|
|
11562
|
+
vars: z18.record(z18.string(), z18.string()).optional(),
|
|
11563
|
+
secretNames: z18.array(z18.string()).optional()
|
|
11446
11564
|
});
|
|
11447
|
-
var
|
|
11448
|
-
|
|
11565
|
+
var artifactSnapshotSchema2 = z18.object({
|
|
11566
|
+
artifactName: z18.string(),
|
|
11567
|
+
artifactVersion: z18.string()
|
|
11449
11568
|
});
|
|
11450
|
-
var
|
|
11451
|
-
|
|
11452
|
-
|
|
11453
|
-
|
|
11569
|
+
var volumeVersionsSnapshotSchema2 = z18.object({
|
|
11570
|
+
versions: z18.record(z18.string(), z18.string())
|
|
11571
|
+
});
|
|
11572
|
+
var checkpointResponseSchema = z18.object({
|
|
11573
|
+
id: z18.string(),
|
|
11574
|
+
runId: z18.string(),
|
|
11575
|
+
conversationId: z18.string(),
|
|
11454
11576
|
agentComposeSnapshot: agentComposeSnapshotSchema,
|
|
11455
11577
|
artifactSnapshot: artifactSnapshotSchema2.nullable(),
|
|
11456
11578
|
volumeVersionsSnapshot: volumeVersionsSnapshotSchema2.nullable(),
|
|
11457
|
-
createdAt:
|
|
11579
|
+
createdAt: z18.string()
|
|
11458
11580
|
});
|
|
11459
|
-
var sessionsContract =
|
|
11581
|
+
var sessionsContract = c11.router({
|
|
11460
11582
|
/**
|
|
11461
11583
|
* GET /api/agent/sessions?agentComposeId=X
|
|
11462
11584
|
* List chat sessions for an agent
|
|
@@ -11465,17 +11587,17 @@ var sessionsContract = c10.router({
|
|
|
11465
11587
|
method: "GET",
|
|
11466
11588
|
path: "/api/agent/sessions",
|
|
11467
11589
|
headers: authHeadersSchema,
|
|
11468
|
-
query:
|
|
11469
|
-
agentComposeId:
|
|
11590
|
+
query: z18.object({
|
|
11591
|
+
agentComposeId: z18.string().min(1, "agentComposeId is required")
|
|
11470
11592
|
}),
|
|
11471
11593
|
responses: {
|
|
11472
|
-
200:
|
|
11594
|
+
200: z18.object({ sessions: z18.array(sessionListItemSchema) }),
|
|
11473
11595
|
401: apiErrorSchema
|
|
11474
11596
|
},
|
|
11475
11597
|
summary: "List chat sessions for an agent"
|
|
11476
11598
|
}
|
|
11477
11599
|
});
|
|
11478
|
-
var sessionsByIdContract =
|
|
11600
|
+
var sessionsByIdContract = c11.router({
|
|
11479
11601
|
/**
|
|
11480
11602
|
* GET /api/agent/sessions/:id
|
|
11481
11603
|
* Get session by ID
|
|
@@ -11484,8 +11606,8 @@ var sessionsByIdContract = c10.router({
|
|
|
11484
11606
|
method: "GET",
|
|
11485
11607
|
path: "/api/agent/sessions/:id",
|
|
11486
11608
|
headers: authHeadersSchema,
|
|
11487
|
-
pathParams:
|
|
11488
|
-
id:
|
|
11609
|
+
pathParams: z18.object({
|
|
11610
|
+
id: z18.string().min(1, "Session ID is required")
|
|
11489
11611
|
}),
|
|
11490
11612
|
responses: {
|
|
11491
11613
|
200: sessionResponseSchema,
|
|
@@ -11496,7 +11618,7 @@ var sessionsByIdContract = c10.router({
|
|
|
11496
11618
|
summary: "Get session by ID"
|
|
11497
11619
|
}
|
|
11498
11620
|
});
|
|
11499
|
-
var sessionMessagesContract =
|
|
11621
|
+
var sessionMessagesContract = c11.router({
|
|
11500
11622
|
/**
|
|
11501
11623
|
* POST /api/agent/sessions/:id/messages
|
|
11502
11624
|
* Append chat messages to a session
|
|
@@ -11505,20 +11627,20 @@ var sessionMessagesContract = c10.router({
|
|
|
11505
11627
|
method: "POST",
|
|
11506
11628
|
path: "/api/agent/sessions/:id/messages",
|
|
11507
11629
|
headers: authHeadersSchema,
|
|
11508
|
-
pathParams:
|
|
11509
|
-
id:
|
|
11630
|
+
pathParams: z18.object({
|
|
11631
|
+
id: z18.string().min(1, "Session ID is required")
|
|
11510
11632
|
}),
|
|
11511
|
-
body:
|
|
11512
|
-
messages:
|
|
11513
|
-
|
|
11514
|
-
role:
|
|
11515
|
-
content:
|
|
11516
|
-
runId:
|
|
11633
|
+
body: z18.object({
|
|
11634
|
+
messages: z18.array(
|
|
11635
|
+
z18.object({
|
|
11636
|
+
role: z18.enum(["user", "assistant"]),
|
|
11637
|
+
content: z18.string(),
|
|
11638
|
+
runId: z18.string().optional()
|
|
11517
11639
|
})
|
|
11518
11640
|
)
|
|
11519
11641
|
}),
|
|
11520
11642
|
responses: {
|
|
11521
|
-
200:
|
|
11643
|
+
200: z18.object({ success: z18.literal(true) }),
|
|
11522
11644
|
401: apiErrorSchema,
|
|
11523
11645
|
403: apiErrorSchema,
|
|
11524
11646
|
404: apiErrorSchema
|
|
@@ -11526,7 +11648,7 @@ var sessionMessagesContract = c10.router({
|
|
|
11526
11648
|
summary: "Append chat messages to a session"
|
|
11527
11649
|
}
|
|
11528
11650
|
});
|
|
11529
|
-
var checkpointsByIdContract =
|
|
11651
|
+
var checkpointsByIdContract = c11.router({
|
|
11530
11652
|
/**
|
|
11531
11653
|
* GET /api/agent/checkpoints/:id
|
|
11532
11654
|
* Get checkpoint by ID
|
|
@@ -11535,8 +11657,8 @@ var checkpointsByIdContract = c10.router({
|
|
|
11535
11657
|
method: "GET",
|
|
11536
11658
|
path: "/api/agent/checkpoints/:id",
|
|
11537
11659
|
headers: authHeadersSchema,
|
|
11538
|
-
pathParams:
|
|
11539
|
-
id:
|
|
11660
|
+
pathParams: z18.object({
|
|
11661
|
+
id: z18.string().min(1, "Checkpoint ID is required")
|
|
11540
11662
|
}),
|
|
11541
11663
|
responses: {
|
|
11542
11664
|
200: checkpointResponseSchema,
|
|
@@ -11548,106 +11670,6 @@ var checkpointsByIdContract = c10.router({
|
|
|
11548
11670
|
}
|
|
11549
11671
|
});
|
|
11550
11672
|
|
|
11551
|
-
// ../../packages/core/src/contracts/chat-threads.ts
|
|
11552
|
-
import { z as z18 } from "zod";
|
|
11553
|
-
var c11 = initContract();
|
|
11554
|
-
var chatThreadListItemSchema = z18.object({
|
|
11555
|
-
id: z18.string(),
|
|
11556
|
-
title: z18.string().nullable(),
|
|
11557
|
-
preview: z18.string().nullable(),
|
|
11558
|
-
agentId: z18.string(),
|
|
11559
|
-
createdAt: z18.string(),
|
|
11560
|
-
updatedAt: z18.string()
|
|
11561
|
-
});
|
|
11562
|
-
var storedChatMessageSchema2 = z18.object({
|
|
11563
|
-
role: z18.enum(["user", "assistant"]),
|
|
11564
|
-
content: z18.string(),
|
|
11565
|
-
runId: z18.string().optional(),
|
|
11566
|
-
error: z18.string().optional(),
|
|
11567
|
-
summaries: z18.array(z18.string()).optional(),
|
|
11568
|
-
createdAt: z18.string()
|
|
11569
|
-
});
|
|
11570
|
-
var unsavedRunSchema = z18.object({
|
|
11571
|
-
runId: z18.string(),
|
|
11572
|
-
status: z18.string(),
|
|
11573
|
-
prompt: z18.string(),
|
|
11574
|
-
error: z18.string().nullable()
|
|
11575
|
-
});
|
|
11576
|
-
var chatThreadDetailSchema = z18.object({
|
|
11577
|
-
id: z18.string(),
|
|
11578
|
-
title: z18.string().nullable(),
|
|
11579
|
-
agentId: z18.string(),
|
|
11580
|
-
chatMessages: z18.array(storedChatMessageSchema2),
|
|
11581
|
-
latestSessionId: z18.string().nullable(),
|
|
11582
|
-
unsavedRuns: z18.array(unsavedRunSchema),
|
|
11583
|
-
createdAt: z18.string(),
|
|
11584
|
-
updatedAt: z18.string()
|
|
11585
|
-
});
|
|
11586
|
-
var chatThreadsContract = c11.router({
|
|
11587
|
-
create: {
|
|
11588
|
-
method: "POST",
|
|
11589
|
-
path: "/api/zero/chat-threads",
|
|
11590
|
-
headers: authHeadersSchema,
|
|
11591
|
-
body: z18.object({
|
|
11592
|
-
agentId: z18.string().min(1),
|
|
11593
|
-
title: z18.string().optional()
|
|
11594
|
-
}),
|
|
11595
|
-
responses: {
|
|
11596
|
-
201: z18.object({
|
|
11597
|
-
id: z18.string(),
|
|
11598
|
-
title: z18.string().nullable(),
|
|
11599
|
-
createdAt: z18.string()
|
|
11600
|
-
}),
|
|
11601
|
-
401: apiErrorSchema
|
|
11602
|
-
},
|
|
11603
|
-
summary: "Create a new chat thread"
|
|
11604
|
-
},
|
|
11605
|
-
list: {
|
|
11606
|
-
method: "GET",
|
|
11607
|
-
path: "/api/zero/chat-threads",
|
|
11608
|
-
headers: authHeadersSchema,
|
|
11609
|
-
query: z18.object({
|
|
11610
|
-
agentId: z18.string().min(1, "agentId is required")
|
|
11611
|
-
}),
|
|
11612
|
-
responses: {
|
|
11613
|
-
200: z18.object({ threads: z18.array(chatThreadListItemSchema) }),
|
|
11614
|
-
401: apiErrorSchema
|
|
11615
|
-
},
|
|
11616
|
-
summary: "List chat threads for an agent"
|
|
11617
|
-
}
|
|
11618
|
-
});
|
|
11619
|
-
var chatThreadByIdContract = c11.router({
|
|
11620
|
-
get: {
|
|
11621
|
-
method: "GET",
|
|
11622
|
-
path: "/api/zero/chat-threads/:id",
|
|
11623
|
-
headers: authHeadersSchema,
|
|
11624
|
-
pathParams: z18.object({ id: z18.string() }),
|
|
11625
|
-
responses: {
|
|
11626
|
-
200: chatThreadDetailSchema,
|
|
11627
|
-
401: apiErrorSchema,
|
|
11628
|
-
404: apiErrorSchema
|
|
11629
|
-
},
|
|
11630
|
-
summary: "Get chat thread detail with messages"
|
|
11631
|
-
}
|
|
11632
|
-
});
|
|
11633
|
-
var chatThreadRunsContract = c11.router({
|
|
11634
|
-
addRun: {
|
|
11635
|
-
method: "POST",
|
|
11636
|
-
path: "/api/zero/chat-threads/:id/runs",
|
|
11637
|
-
headers: authHeadersSchema,
|
|
11638
|
-
pathParams: z18.object({ id: z18.string() }),
|
|
11639
|
-
body: z18.object({
|
|
11640
|
-
runId: z18.string().min(1)
|
|
11641
|
-
}),
|
|
11642
|
-
responses: {
|
|
11643
|
-
204: c11.noBody(),
|
|
11644
|
-
401: apiErrorSchema,
|
|
11645
|
-
404: apiErrorSchema
|
|
11646
|
-
},
|
|
11647
|
-
summary: "Associate a run to a chat thread"
|
|
11648
|
-
}
|
|
11649
|
-
});
|
|
11650
|
-
|
|
11651
11673
|
// ../../packages/core/src/contracts/runners.ts
|
|
11652
11674
|
import { z as z19 } from "zod";
|
|
11653
11675
|
var c12 = initContract();
|
|
@@ -15388,7 +15410,8 @@ var zeroAgentsByIdContract = c17.router({
|
|
|
15388
15410
|
204: c17.noBody(),
|
|
15389
15411
|
401: apiErrorSchema,
|
|
15390
15412
|
403: apiErrorSchema,
|
|
15391
|
-
404: apiErrorSchema
|
|
15413
|
+
404: apiErrorSchema,
|
|
15414
|
+
409: apiErrorSchema
|
|
15392
15415
|
},
|
|
15393
15416
|
summary: "Delete zero agent by id"
|
|
15394
15417
|
}
|
|
@@ -16282,7 +16305,7 @@ var zeroSessionResponseSchema = z34.object({
|
|
|
16282
16305
|
conversationId: z34.string().nullable(),
|
|
16283
16306
|
artifactName: z34.string().nullable(),
|
|
16284
16307
|
secretNames: z34.array(z34.string()).nullable(),
|
|
16285
|
-
chatMessages: z34.array(
|
|
16308
|
+
chatMessages: z34.array(storedChatMessageSchema2).optional(),
|
|
16286
16309
|
createdAt: z34.string(),
|
|
16287
16310
|
updatedAt: z34.string()
|
|
16288
16311
|
});
|
|
@@ -16466,6 +16489,30 @@ var zeroBillingInvoicesContract = c29.router({
|
|
|
16466
16489
|
summary: "Get invoices for current org"
|
|
16467
16490
|
}
|
|
16468
16491
|
});
|
|
16492
|
+
var downgradeRequestSchema = z36.object({
|
|
16493
|
+
targetTier: z36.enum(["free", "pro"])
|
|
16494
|
+
});
|
|
16495
|
+
var downgradeResponseSchema = z36.object({
|
|
16496
|
+
success: z36.boolean(),
|
|
16497
|
+
effectiveDate: z36.string().nullable()
|
|
16498
|
+
});
|
|
16499
|
+
var zeroBillingDowngradeContract = c29.router({
|
|
16500
|
+
create: {
|
|
16501
|
+
method: "POST",
|
|
16502
|
+
path: "/api/zero/billing/downgrade",
|
|
16503
|
+
headers: authHeadersSchema,
|
|
16504
|
+
body: downgradeRequestSchema,
|
|
16505
|
+
responses: {
|
|
16506
|
+
200: downgradeResponseSchema,
|
|
16507
|
+
400: apiErrorSchema,
|
|
16508
|
+
401: apiErrorSchema,
|
|
16509
|
+
403: apiErrorSchema,
|
|
16510
|
+
500: apiErrorSchema,
|
|
16511
|
+
503: apiErrorSchema
|
|
16512
|
+
},
|
|
16513
|
+
summary: "Downgrade subscription to a lower tier"
|
|
16514
|
+
}
|
|
16515
|
+
});
|
|
16469
16516
|
|
|
16470
16517
|
// ../../packages/core/src/contracts/zero-usage.ts
|
|
16471
16518
|
import { z as z37 } from "zod";
|
|
@@ -18144,4 +18191,4 @@ export {
|
|
|
18144
18191
|
promptSelect,
|
|
18145
18192
|
promptPassword
|
|
18146
18193
|
};
|
|
18147
|
-
//# sourceMappingURL=chunk-
|
|
18194
|
+
//# sourceMappingURL=chunk-UTY3UDKG.js.map
|