@agentstep/agent-sdk 0.5.34 → 0.5.36
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/dist/{chunk-75US4UAE.js → chunk-2E43SH4Y.js} +1 -1
- package/dist/chunk-2HTAIROL.js +164 -0
- package/dist/{chunk-SAI6LBXW.js → chunk-2HVY2WZL.js} +79 -5
- package/dist/{chunk-ZHEE6UTX.js → chunk-2YZUXJAN.js} +1 -1
- package/dist/{chunk-GABMXDZZ.js → chunk-2Z4T32WO.js} +1 -1
- package/dist/{chunk-SUEPFZN2.js → chunk-3CDJ2VQN.js} +1 -1
- package/dist/{chunk-XXAO5YYL.js → chunk-3IO3EGWP.js} +1 -1
- package/dist/{chunk-HHLVVJGT.js → chunk-3RK6EX7J.js} +1 -1
- package/dist/{chunk-3LYNN5VT.js → chunk-3WPVSQGI.js} +1 -1
- package/dist/{chunk-SWGCL54X.js → chunk-3XGUMXGR.js} +132 -132
- package/dist/{chunk-ZAUWB5DQ.js → chunk-4XB2CJPE.js} +1 -1
- package/dist/{chunk-6NFK5RJX.js → chunk-52K3LOFD.js} +1 -1
- package/dist/{chunk-AD2WPGDN.js → chunk-5BIX3H2D.js} +1 -1
- package/dist/{chunk-K3LM6O44.js → chunk-AE7UG76I.js} +1 -1
- package/dist/{chunk-NQ6BN7WH.js → chunk-BVBVWMQS.js} +16 -9
- package/dist/{chunk-IMJTHYN3.js → chunk-CCNG7D6Y.js} +1 -1
- package/dist/{chunk-LR6FK2J7.js → chunk-DQIQBMC2.js} +1 -1
- package/dist/{chunk-JIXRTWYL.js → chunk-FH2IOAQM.js} +1 -1
- package/dist/{chunk-ZACPJA3G.js → chunk-HGV3Y4PS.js} +1 -1
- package/dist/{chunk-VQM2MCQR.js → chunk-JFIJEF4N.js} +2 -2
- package/dist/{chunk-FCPZF7KJ.js → chunk-L2ZB7TCF.js} +1 -1
- package/dist/{chunk-2R4IT7HG.js → chunk-L7X2UMNJ.js} +2 -2
- package/dist/{chunk-YKPRNV6J.js → chunk-LJ2ZXLLT.js} +2 -4
- package/dist/{chunk-GBBQD6VY.js → chunk-MG2DS6QE.js} +1 -1
- package/dist/{chunk-GFZ2WIVH.js → chunk-NO77URFL.js} +1 -1
- package/dist/{chunk-OEYLPPID.js → chunk-OMGJEZJS.js} +2 -2
- package/dist/{chunk-6CODFATQ.js → chunk-PUAK45BO.js} +2 -2
- package/dist/chunk-PULMO5OO.js +99 -0
- package/dist/{chunk-PWLWDWRL.js → chunk-R43A2QH7.js} +171 -2
- package/dist/{chunk-BSAF4YJB.js → chunk-R6NWAM37.js} +4 -4
- package/dist/{chunk-3EI7IPMI.js → chunk-R7MZNZNC.js} +1 -1
- package/dist/{chunk-OANORRFX.js → chunk-RHSVYAI4.js} +145 -9
- package/dist/{chunk-4EKHW6VS.js → chunk-RMCBO7K7.js} +5 -3
- package/dist/{chunk-LKHJLSYG.js → chunk-SP26BYYZ.js} +2 -2
- package/dist/{chunk-6NEWWPL4.js → chunk-TBLHBMA5.js} +1 -1
- package/dist/{chunk-JDAOTVWV.js → chunk-VIWYYVGR.js} +1 -1
- package/dist/{chunk-3EWEKBVC.js → chunk-VWCIN45Y.js} +1 -1
- package/dist/{chunk-CZ4N5FJW.js → chunk-W3DA3OFL.js} +1 -1
- package/dist/{chunk-FHOJOLXU.js → chunk-XLVZ5236.js} +1 -1
- package/dist/{chunk-KYKVHH7I.js → chunk-YAJJ7KHX.js} +1 -1
- package/dist/{chunk-P7V3S2T3.js → chunk-ZDURV2LI.js} +4 -4
- package/dist/{chunk-25E64UIV.js → chunk-ZPTYXWUO.js} +1 -1
- package/dist/containers/lifecycle.js +1 -1
- package/dist/db/files.js +1 -1
- package/dist/handlers/agents.js +7 -7
- package/dist/handlers/api_keys.js +7 -7
- package/dist/handlers/audit.js +7 -7
- package/dist/handlers/batch.js +7 -7
- package/dist/handlers/credentials.js +8 -8
- package/dist/handlers/enrollment.js +7 -7
- package/dist/handlers/environments.js +7 -7
- package/dist/handlers/events.js +7 -7
- package/dist/handlers/files.js +8 -8
- package/dist/handlers/google-compat/agents.js +106 -0
- package/dist/handlers/google-compat/files.js +101 -0
- package/dist/handlers/google-compat/index.js +31 -10
- package/dist/handlers/google-compat/interactions.js +15 -9
- package/dist/handlers/index.d.ts +33 -0
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +63 -43
- package/dist/handlers/license.js +7 -7
- package/dist/handlers/memory.js +7 -7
- package/dist/handlers/metrics.js +7 -7
- package/dist/handlers/models.js +7 -7
- package/dist/handlers/openapi.d.ts +2 -0
- package/dist/handlers/openapi.d.ts.map +1 -0
- package/dist/handlers/openapi.js +3 -3
- package/dist/handlers/providers.js +7 -7
- package/dist/handlers/resources.js +7 -7
- package/dist/handlers/sessions.js +8 -8
- package/dist/handlers/settings.js +7 -7
- package/dist/handlers/skills-write.js +7 -7
- package/dist/handlers/skills.js +7 -7
- package/dist/handlers/stream.js +6 -6
- package/dist/handlers/tenants.js +7 -7
- package/dist/handlers/threads.js +7 -7
- package/dist/handlers/traces.js +7 -7
- package/dist/handlers/ui.js +1 -1
- package/dist/handlers/upstream_keys.js +7 -7
- package/dist/handlers/user-profiles.js +7 -7
- package/dist/handlers/vaults.js +7 -7
- package/dist/handlers/whoami.js +7 -7
- package/dist/handlers/work.js +7 -7
- package/dist/http.js +6 -6
- package/dist/index.d.ts +48 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -9
- package/dist/init.js +5 -5
- package/dist/openapi/schemas.d.ts +5855 -0
- package/dist/openapi/schemas.d.ts.map +1 -0
- package/dist/openapi/schemas.js +15 -1
- package/dist/openapi/spec.d.ts +4 -0
- package/dist/openapi/spec.d.ts.map +1 -0
- package/dist/openapi/spec.js +2 -2
- package/dist/sessions/driver.js +2 -2
- package/dist/sessions/sweeper.js +2 -2
- package/dist/sessions/threads.js +2 -2
- package/dist/shutdown.js +3 -3
- package/dist/sync/anthropic.js +1 -1
- package/dist/sync/container-file-sync.js +1 -1
- package/dist/sync/file-sync.js +1 -1
- package/dist/workers/runner.js +3 -3
- package/package.json +1 -1
- package/dist/handlers/ui.d.ts +0 -6
- package/dist/handlers/ui.d.ts.map +0 -1
- /package/dist/{chunk-B5RR422E.js → chunk-DI6IMZ3P.js} +0 -0
- /package/dist/{chunk-ZCCHLDLC.js → chunk-IL2CZHNC.js} +0 -0
- /package/dist/{chunk-AUEKXYNE.js → chunk-VCU64NHY.js} +0 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import {
|
|
2
|
+
jsonOk,
|
|
3
|
+
routeWrap
|
|
4
|
+
} from "./chunk-RMCBO7K7.js";
|
|
5
|
+
import {
|
|
6
|
+
badRequest,
|
|
7
|
+
notFound
|
|
8
|
+
} from "./chunk-EZYKRG4W.js";
|
|
9
|
+
|
|
10
|
+
// src/handlers/google-compat/agents.ts
|
|
11
|
+
import { z } from "zod";
|
|
12
|
+
var SourceSchema = z.object({
|
|
13
|
+
type: z.string().optional(),
|
|
14
|
+
target: z.string().optional(),
|
|
15
|
+
content: z.string().optional(),
|
|
16
|
+
url: z.string().optional()
|
|
17
|
+
}).passthrough();
|
|
18
|
+
var BaseEnvironmentSchema = z.object({
|
|
19
|
+
type: z.string().optional(),
|
|
20
|
+
sources: z.array(SourceSchema).optional()
|
|
21
|
+
}).passthrough();
|
|
22
|
+
var CreateGoogleAgentSchema = z.object({
|
|
23
|
+
id: z.string().optional(),
|
|
24
|
+
description: z.string().optional(),
|
|
25
|
+
base_agent: z.string().optional(),
|
|
26
|
+
system_instruction: z.string().optional(),
|
|
27
|
+
tools: z.array(z.unknown()).optional(),
|
|
28
|
+
base_environment: BaseEnvironmentSchema.optional()
|
|
29
|
+
});
|
|
30
|
+
function resolveBaseAgent(baseAgent) {
|
|
31
|
+
if (!baseAgent) return { engine: "gemini", model: "gemini-2.5-flash" };
|
|
32
|
+
if (baseAgent === "antigravity-preview-05-2026") {
|
|
33
|
+
return { engine: "gemini", model: "gemini-2.5-flash" };
|
|
34
|
+
}
|
|
35
|
+
return { engine: "gemini", model: baseAgent };
|
|
36
|
+
}
|
|
37
|
+
function toGoogleFormat(agent) {
|
|
38
|
+
return {
|
|
39
|
+
id: agent.name,
|
|
40
|
+
base_agent: agent.engine === "gemini" ? "antigravity-preview-05-2026" : void 0,
|
|
41
|
+
system_instruction: agent.system ?? void 0,
|
|
42
|
+
description: agent.description ?? void 0,
|
|
43
|
+
created: agent.created_at ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
44
|
+
updated: agent.updated_at ?? agent.created_at ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function handleCreateGoogleAgent(request) {
|
|
48
|
+
return routeWrap(request, async () => {
|
|
49
|
+
const body = await request.json().catch(() => null);
|
|
50
|
+
const parsed = CreateGoogleAgentSchema.safeParse(body);
|
|
51
|
+
if (!parsed.success) {
|
|
52
|
+
throw badRequest(`invalid body: ${parsed.error.issues.map((i) => i.message).join("; ")}`);
|
|
53
|
+
}
|
|
54
|
+
const data = parsed.data;
|
|
55
|
+
const { engine, model } = resolveBaseAgent(data.base_agent);
|
|
56
|
+
let systemInstruction = data.system_instruction ?? "";
|
|
57
|
+
const skills = [];
|
|
58
|
+
if (data.base_environment?.sources) {
|
|
59
|
+
for (const source of data.base_environment.sources) {
|
|
60
|
+
const target = source.target ?? "";
|
|
61
|
+
const skillMatch = target.match(/\.agents\/skills\/([^/]+)\/SKILL\.md$/);
|
|
62
|
+
if (skillMatch && source.content) {
|
|
63
|
+
skills.push({
|
|
64
|
+
name: skillMatch[1],
|
|
65
|
+
source: "inline",
|
|
66
|
+
content: source.content
|
|
67
|
+
});
|
|
68
|
+
} else if (target.endsWith(".agents/AGENTS.md") && source.content) {
|
|
69
|
+
if (systemInstruction) systemInstruction += "\n\n";
|
|
70
|
+
systemInstruction += source.content;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
const agentName = data.id || `google-agent-${Date.now()}`;
|
|
75
|
+
const { handleCreateAgent } = await import("./handlers/agents.js");
|
|
76
|
+
const createBody = {
|
|
77
|
+
name: agentName,
|
|
78
|
+
model: { id: model },
|
|
79
|
+
engine
|
|
80
|
+
};
|
|
81
|
+
if (systemInstruction) createBody.system = systemInstruction;
|
|
82
|
+
if (data.description) createBody.description = data.description;
|
|
83
|
+
if (skills.length > 0) createBody.skills = skills;
|
|
84
|
+
const createReq = new Request(request.url.replace(/\/google\/v1beta\/agents.*/, `/v1/agents`), {
|
|
85
|
+
method: "POST",
|
|
86
|
+
headers: request.headers,
|
|
87
|
+
body: JSON.stringify(createBody)
|
|
88
|
+
});
|
|
89
|
+
const createRes = await handleCreateAgent(createReq);
|
|
90
|
+
if (!createRes.ok) {
|
|
91
|
+
const err = await createRes.json().catch(() => ({}));
|
|
92
|
+
throw badRequest(err.error?.message || `failed to create agent: ${createRes.status}`);
|
|
93
|
+
}
|
|
94
|
+
const created = await createRes.json();
|
|
95
|
+
const response = {
|
|
96
|
+
id: created.name ?? agentName,
|
|
97
|
+
base_agent: data.base_agent,
|
|
98
|
+
system_instruction: systemInstruction || void 0,
|
|
99
|
+
description: data.description,
|
|
100
|
+
created: created.created_at ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
101
|
+
updated: created.updated_at ?? created.created_at ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
102
|
+
};
|
|
103
|
+
return jsonOk(response, 201);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
function handleListGoogleAgents(request) {
|
|
107
|
+
return routeWrap(request, async () => {
|
|
108
|
+
const { handleListAgents } = await import("./handlers/agents.js");
|
|
109
|
+
const listReq = new Request(request.url.replace(/\/google\/v1beta\/agents.*/, `/v1/agents?limit=1000`), {
|
|
110
|
+
headers: request.headers
|
|
111
|
+
});
|
|
112
|
+
const listRes = await handleListAgents(listReq);
|
|
113
|
+
if (!listRes.ok) {
|
|
114
|
+
return listRes;
|
|
115
|
+
}
|
|
116
|
+
const listBody = await listRes.json();
|
|
117
|
+
const agents = (listBody.data ?? []).map(toGoogleFormat);
|
|
118
|
+
return jsonOk({ agents });
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
function handleGetGoogleAgent(request, id) {
|
|
122
|
+
return routeWrap(request, async () => {
|
|
123
|
+
const { handleListAgents } = await import("./handlers/agents.js");
|
|
124
|
+
const listReq = new Request(request.url.replace(/\/google\/v1beta\/agents.*/, `/v1/agents?limit=1000`), {
|
|
125
|
+
headers: request.headers
|
|
126
|
+
});
|
|
127
|
+
const listRes = await handleListAgents(listReq);
|
|
128
|
+
if (!listRes.ok) {
|
|
129
|
+
return listRes;
|
|
130
|
+
}
|
|
131
|
+
const listBody = await listRes.json();
|
|
132
|
+
const agent = listBody.data?.find((a) => a.name === id);
|
|
133
|
+
if (!agent) throw notFound(`agent not found: ${id}`);
|
|
134
|
+
return jsonOk(toGoogleFormat(agent));
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function handleDeleteGoogleAgent(request, id) {
|
|
138
|
+
return routeWrap(request, async () => {
|
|
139
|
+
const { handleListAgents, handleDeleteAgent } = await import("./handlers/agents.js");
|
|
140
|
+
const listReq = new Request(request.url.replace(/\/google\/v1beta\/agents.*/, `/v1/agents?limit=1000`), {
|
|
141
|
+
headers: request.headers
|
|
142
|
+
});
|
|
143
|
+
const listRes = await handleListAgents(listReq);
|
|
144
|
+
if (!listRes.ok) {
|
|
145
|
+
return listRes;
|
|
146
|
+
}
|
|
147
|
+
const listBody = await listRes.json();
|
|
148
|
+
const agent = listBody.data?.find((a) => a.name === id);
|
|
149
|
+
if (!agent) throw notFound(`agent not found: ${id}`);
|
|
150
|
+
const delReq = new Request(request.url.replace(/\/google\/v1beta\/agents.*/, `/v1/agents/${agent.id}`), {
|
|
151
|
+
method: "DELETE",
|
|
152
|
+
headers: request.headers
|
|
153
|
+
});
|
|
154
|
+
await handleDeleteAgent(delReq, agent.id);
|
|
155
|
+
return jsonOk({});
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export {
|
|
160
|
+
handleCreateGoogleAgent,
|
|
161
|
+
handleListGoogleAgents,
|
|
162
|
+
handleGetGoogleAgent,
|
|
163
|
+
handleDeleteGoogleAgent
|
|
164
|
+
};
|
|
@@ -127,6 +127,10 @@ var AgentSchema = registry.register(
|
|
|
127
127
|
skills: z.array(AgentSkillSchema).openapi({
|
|
128
128
|
description: "Skills injected into the container at session start. For Claude backend, written to .claude/skills/<name>/SKILL.md. For all backends, also written to .agents/skills/<name>/SKILL.md. Non-Claude backends also receive skills prepended to the system prompt."
|
|
129
129
|
}),
|
|
130
|
+
permission_policy: z.object({
|
|
131
|
+
always_allow: z.array(z.string()).optional(),
|
|
132
|
+
always_ask: z.array(z.string()).optional()
|
|
133
|
+
}).nullable().optional().openapi({ description: "Per-tool permission control." }),
|
|
130
134
|
model_config: ModelConfigSchema.openapi({
|
|
131
135
|
description: "Model configuration options. 'fast' speed enables fast mode on Claude (claude engine only)."
|
|
132
136
|
}),
|
|
@@ -139,7 +143,10 @@ var CreateAgentRequestSchema = registry.register(
|
|
|
139
143
|
"CreateAgentRequest",
|
|
140
144
|
z.object({
|
|
141
145
|
name: z.string().min(1).openapi({ example: "my-agent" }),
|
|
142
|
-
model: z.
|
|
146
|
+
model: z.union([
|
|
147
|
+
z.string().openapi({ example: "claude-sonnet-4-6" }),
|
|
148
|
+
z.object({ id: z.string().min(1), speed: z.enum(["standard", "fast"]).optional() }).openapi({ example: { id: "claude-sonnet-4-6" } })
|
|
149
|
+
]).openapi({ description: 'Model identifier \u2014 either a bare string (`"claude-sonnet-4-6"`) or an object (`{id, speed?}`). Do not include provider prefixes.' }),
|
|
143
150
|
description: z.string().max(2048).optional().openapi({
|
|
144
151
|
description: "Human-readable description of the agent."
|
|
145
152
|
}),
|
|
@@ -362,6 +369,7 @@ var SessionSchema = registry.register(
|
|
|
362
369
|
vault_ids: z.array(z.string()).nullable().openapi({
|
|
363
370
|
description: "Vault IDs whose entries are injected as environment variables."
|
|
364
371
|
}),
|
|
372
|
+
user_profile_id: z.string().nullable().optional().openapi({ description: "User profile ID for credential scoping." }),
|
|
365
373
|
parent_session_id: z.string().nullable().openapi({
|
|
366
374
|
description: "Parent session ID if this is a child thread session."
|
|
367
375
|
}),
|
|
@@ -397,7 +405,17 @@ var CreateSessionRequestSchema = registry.register(
|
|
|
397
405
|
uri: z.string().optional(),
|
|
398
406
|
content: z.string().optional()
|
|
399
407
|
})).optional(),
|
|
400
|
-
vault_ids: z.array(z.string()).optional()
|
|
408
|
+
vault_ids: z.array(z.string()).optional(),
|
|
409
|
+
user_profile_id: z.string().optional().openapi({ description: "Links session to a user profile for per-user credential scoping." }),
|
|
410
|
+
outcomes: z.object({
|
|
411
|
+
description: z.string(),
|
|
412
|
+
rubric: z.array(z.object({
|
|
413
|
+
name: z.string(),
|
|
414
|
+
description: z.string(),
|
|
415
|
+
weight: z.number().optional()
|
|
416
|
+
})).optional(),
|
|
417
|
+
max_iterations: z.number().int().optional()
|
|
418
|
+
}).optional().openapi({ description: "Success criteria with optional rubric for self-evaluation." })
|
|
401
419
|
}).openapi({
|
|
402
420
|
example: {
|
|
403
421
|
agent: "agent_01ABCDEFG...",
|
|
@@ -583,7 +601,9 @@ var BatchResponseSchema = registry.register(
|
|
|
583
601
|
function listEnvelope(name, item) {
|
|
584
602
|
const schema = z.object({
|
|
585
603
|
data: z.array(item),
|
|
586
|
-
|
|
604
|
+
has_more: z.boolean(),
|
|
605
|
+
first_id: z.string().nullable(),
|
|
606
|
+
last_id: z.string().nullable()
|
|
587
607
|
});
|
|
588
608
|
return registry.register(name, schema);
|
|
589
609
|
}
|
|
@@ -602,6 +622,49 @@ var VaultEntryListResponseSchema = registry.register(
|
|
|
602
622
|
"VaultEntryListResponse",
|
|
603
623
|
z.object({ data: z.array(VaultEntrySchema) })
|
|
604
624
|
);
|
|
625
|
+
var TrustGrantSchema = registry.register("TrustGrant", z.object({
|
|
626
|
+
type: z.literal("vault_credential"),
|
|
627
|
+
vault_id: z.string(),
|
|
628
|
+
credential_id: z.string()
|
|
629
|
+
}));
|
|
630
|
+
var UserProfileSchema = registry.register("UserProfile", z.object({
|
|
631
|
+
type: z.literal("user_profile"),
|
|
632
|
+
id: z.string(),
|
|
633
|
+
external_id: z.string().nullable(),
|
|
634
|
+
display_name: z.string().nullable(),
|
|
635
|
+
trust_grants: z.array(TrustGrantSchema),
|
|
636
|
+
created_at: z.string(),
|
|
637
|
+
updated_at: z.string()
|
|
638
|
+
}));
|
|
639
|
+
var UserProfileCreateSchema = registry.register("UserProfileCreate", z.object({
|
|
640
|
+
external_id: z.string().optional(),
|
|
641
|
+
display_name: z.string().optional(),
|
|
642
|
+
trust_grants: z.array(TrustGrantSchema).optional()
|
|
643
|
+
}));
|
|
644
|
+
var UserProfileUpdateSchema = registry.register("UserProfileUpdate", z.object({
|
|
645
|
+
external_id: z.string().nullish(),
|
|
646
|
+
display_name: z.string().nullish(),
|
|
647
|
+
trust_grants: z.array(TrustGrantSchema).optional()
|
|
648
|
+
}));
|
|
649
|
+
var UserProfileListSchema = listEnvelope("UserProfileList", UserProfileSchema);
|
|
650
|
+
var EnrollmentUrlRequestSchema = registry.register("EnrollmentUrlRequest", z.object({
|
|
651
|
+
vault_id: z.string(),
|
|
652
|
+
credential_id: z.string().optional(),
|
|
653
|
+
display_name: z.string().optional(),
|
|
654
|
+
authorize_url: z.string(),
|
|
655
|
+
token_endpoint: z.string(),
|
|
656
|
+
client_id: z.string(),
|
|
657
|
+
client_secret: z.string().optional(),
|
|
658
|
+
scope: z.string().optional(),
|
|
659
|
+
redirect_uri: z.string().optional()
|
|
660
|
+
}));
|
|
661
|
+
var EnrollmentUrlResponseSchema = registry.register("EnrollmentUrlResponse", z.object({
|
|
662
|
+
type: z.literal("enrollment_url"),
|
|
663
|
+
url: z.string(),
|
|
664
|
+
state: z.string(),
|
|
665
|
+
redirect_uri: z.string(),
|
|
666
|
+
expires_in: z.number()
|
|
667
|
+
}));
|
|
605
668
|
var AgentDeletedResponseSchema = registry.register(
|
|
606
669
|
"AgentDeletedResponse",
|
|
607
670
|
z.object({ id: UlidId, type: z.literal("agent_deleted") })
|
|
@@ -641,7 +704,9 @@ var FileListResponseSchema = registry.register(
|
|
|
641
704
|
"FileListResponse",
|
|
642
705
|
z.object({
|
|
643
706
|
data: z.array(FileRecordSchema),
|
|
644
|
-
|
|
707
|
+
has_more: z.boolean().openapi({ description: "Whether more results exist beyond this page." }),
|
|
708
|
+
first_id: z.string().nullable().openapi({ description: "ID of the first item in this page." }),
|
|
709
|
+
last_id: z.string().nullable().openapi({ description: "ID of the last item in this page. Pass as after_id for the next page." })
|
|
645
710
|
})
|
|
646
711
|
);
|
|
647
712
|
var FileDeletedResponseSchema = registry.register(
|
|
@@ -954,7 +1019,9 @@ var AuditListResponseSchema = registry.register(
|
|
|
954
1019
|
"AuditListResponse",
|
|
955
1020
|
z.object({
|
|
956
1021
|
data: z.array(AuditEntrySchema),
|
|
957
|
-
|
|
1022
|
+
has_more: z.boolean(),
|
|
1023
|
+
first_id: z.string().nullable(),
|
|
1024
|
+
last_id: z.string().nullable()
|
|
958
1025
|
})
|
|
959
1026
|
);
|
|
960
1027
|
var TraceListItemSchema = registry.register(
|
|
@@ -1191,6 +1258,13 @@ export {
|
|
|
1191
1258
|
EventListResponseSchema,
|
|
1192
1259
|
VaultListResponseSchema,
|
|
1193
1260
|
VaultEntryListResponseSchema,
|
|
1261
|
+
TrustGrantSchema,
|
|
1262
|
+
UserProfileSchema,
|
|
1263
|
+
UserProfileCreateSchema,
|
|
1264
|
+
UserProfileUpdateSchema,
|
|
1265
|
+
UserProfileListSchema,
|
|
1266
|
+
EnrollmentUrlRequestSchema,
|
|
1267
|
+
EnrollmentUrlResponseSchema,
|
|
1194
1268
|
AgentDeletedResponseSchema,
|
|
1195
1269
|
SessionDeletedResponseSchema,
|
|
1196
1270
|
EnvironmentDeletedResponseSchema,
|