@sixb/server 0.1.26 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2495 -1845
- package/dist/index.js.map +29 -27
- package/dist/routes/actions.d.ts +1 -1
- package/dist/routes/agent-approvals.d.ts +11 -5
- package/dist/routes/agent-approvals.d.ts.map +1 -1
- package/dist/routes/agent-children.d.ts +2 -2
- package/dist/routes/agent-computers.d.ts +214 -10
- package/dist/routes/agent-computers.d.ts.map +1 -1
- package/dist/routes/agent-runners.d.ts +1 -1
- package/dist/routes/agent-runners.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +230 -24
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +9 -0
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +93 -17
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +1 -1
- package/dist/routes/links.d.ts +121 -81
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +3 -3
- package/dist/routes/objects.d.ts +149 -58
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/observed-agent-threads.d.ts +23 -5
- package/dist/routes/observed-agent-threads.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +2 -2
- package/dist/routes/projections.d.ts +122 -122
- package/dist/routes/rules.d.ts +2 -2
- package/dist/routes/telemetry.d.ts +0 -50
- package/dist/routes/telemetry.d.ts.map +1 -1
- package/dist/routes/webhook-runs.d.ts +1 -1
- package/dist/routes/workflows.d.ts +21 -10
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +4 -1
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/schemas/actions.d.ts +3 -3
- package/dist/schemas/activity.d.ts +4 -4
- package/dist/schemas/agent-approvals.d.ts +21 -21
- package/dist/schemas/agents.d.ts +760 -107
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +1114 -6
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/auth.d.ts +47 -0
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +303 -60
- package/dist/schemas/datasets.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +8 -8
- package/dist/schemas/lineage.d.ts +1272 -0
- package/dist/schemas/lineage.d.ts.map +1 -0
- package/dist/schemas/links.d.ts +4 -27
- package/dist/schemas/links.d.ts.map +1 -1
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/objects.d.ts +7 -26
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +12 -12
- package/dist/schemas/projections.d.ts +733 -733
- package/dist/schemas/rules.d.ts +4 -4
- package/dist/schemas/telemetry.d.ts +0 -13
- package/dist/schemas/telemetry.d.ts.map +1 -1
- package/dist/schemas/webhook-runs.d.ts +2 -2
- package/dist/schemas/workflows.d.ts +133 -44
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +4 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/request-body.d.ts +5 -0
- package/dist/utils/request-body.d.ts.map +1 -1
- package/dist/utils/request-timing.d.ts +18 -0
- package/dist/utils/request-timing.d.ts.map +1 -0
- package/package.json +7 -7
- package/src/index.ts +1 -0
- package/src/routes/agent-approvals.ts +2 -2
- package/src/routes/agent-computers.ts +309 -87
- package/src/routes/agent-runners.ts +30 -6
- package/src/routes/agents.ts +187 -25
- package/src/routes/ai-accounting.ts +149 -12
- package/src/routes/auth.ts +24 -2
- package/src/routes/datasets.ts +55 -5
- package/src/routes/links.ts +43 -76
- package/src/routes/objects.ts +49 -42
- package/src/routes/observed-agent-threads.ts +2 -2
- package/src/routes/telemetry.ts +1 -42
- package/src/routes/ws/agents.ts +10 -1
- package/src/schemas/agents.ts +121 -6
- package/src/schemas/ai-accounting.ts +78 -15
- package/src/schemas/auth.ts +19 -0
- package/src/schemas/datasets.ts +36 -0
- package/src/schemas/lineage.ts +115 -0
- package/src/schemas/links.ts +3 -11
- package/src/schemas/objects.ts +6 -10
- package/src/schemas/telemetry.ts +0 -6
- package/src/server.ts +18 -2
- package/src/utils/request-body.ts +10 -4
- package/src/utils/request-timing.ts +136 -0
package/dist/routes/agents.d.ts
CHANGED
|
@@ -2,11 +2,15 @@ import { type AgentRequestErrorCode, type AgentRunView, type AgentThreadView, ty
|
|
|
2
2
|
import { type AgentStorage, type AgentThreadRecord, type Principal } from "@sixb/core/storage";
|
|
3
3
|
import type { Elysia } from "elysia";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
import { requireRequestSixb } from "../auth/scope";
|
|
5
6
|
import { AgentMessagesQuerySchema, AgentRunSchema, AgentThreadSchema } from "../schemas/agents";
|
|
6
7
|
import { handleRouteError } from "../utils/http";
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Threads as the API returns them to `viewer`, their owner and participants named by their
|
|
10
|
+
* accounts. Where a computer's thread runs, and whether `sixb` is open there, is its owner's alone.
|
|
11
|
+
*/
|
|
12
|
+
export declare function serializeThreads(host: SixbHostView, threads: readonly AgentThreadView[], viewer: Principal): Promise<ReturnType<typeof AgentThreadSchema.parse>[]>;
|
|
13
|
+
export declare function serializeThread(host: SixbHostView, thread: AgentThreadView, viewer: Principal): Promise<ReturnType<typeof AgentThreadSchema.parse>>;
|
|
10
14
|
export declare function serializeAgentRun(run: AgentRunView): ReturnType<typeof AgentRunSchema.parse>;
|
|
11
15
|
export declare function handleAgentRouteError(error: unknown, set: {
|
|
12
16
|
status?: number | string;
|
|
@@ -33,7 +37,7 @@ export declare function agentMessageFileContentResponse(host: SixbHostView, cont
|
|
|
33
37
|
error: string;
|
|
34
38
|
}>;
|
|
35
39
|
/** A page of a thread's messages, with their runs' diagnostics and compactions, and authors. */
|
|
36
|
-
export declare function readThreadMessages(host: SixbHostView, storage: AgentStorage, thread: AgentThreadRecord, query: z.infer<typeof AgentMessagesQuerySchema>): Promise<{
|
|
40
|
+
export declare function readThreadMessages(host: SixbHostView, storage: AgentStorage, thread: Pick<AgentThreadRecord, "id">, query: z.infer<typeof AgentMessagesQuerySchema>): Promise<{
|
|
37
41
|
messages: {
|
|
38
42
|
projectId: string;
|
|
39
43
|
id: string;
|
|
@@ -92,6 +96,17 @@ export declare function readThreadMessages(host: SixbHostView, storage: AgentSto
|
|
|
92
96
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
93
97
|
dynamic?: boolean | undefined;
|
|
94
98
|
providerExecuted?: boolean | undefined;
|
|
99
|
+
outputFile?: {
|
|
100
|
+
path: string;
|
|
101
|
+
fileRef: {
|
|
102
|
+
blobId: string;
|
|
103
|
+
digest: string;
|
|
104
|
+
sizeBytes: number;
|
|
105
|
+
fileName?: string | undefined;
|
|
106
|
+
mediaType?: string | undefined;
|
|
107
|
+
logicalPath?: string | undefined;
|
|
108
|
+
};
|
|
109
|
+
} | undefined;
|
|
95
110
|
} | {
|
|
96
111
|
type: "tool-call";
|
|
97
112
|
input: import("../schemas/common").JsonValue;
|
|
@@ -139,7 +154,7 @@ export declare function readThreadMessages(host: SixbHostView, storage: AgentSto
|
|
|
139
154
|
} | {
|
|
140
155
|
error: {
|
|
141
156
|
at: string;
|
|
142
|
-
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
157
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
143
158
|
message: string;
|
|
144
159
|
retryable: boolean;
|
|
145
160
|
details?: import("../schemas/common").JsonValue | undefined;
|
|
@@ -173,6 +188,7 @@ export declare function readThreadMessages(host: SixbHostView, storage: AgentSto
|
|
|
173
188
|
type: "user" | "serviceAccount" | "system";
|
|
174
189
|
} | undefined;
|
|
175
190
|
compaction?: {
|
|
191
|
+
reason: "threshold" | "overflow";
|
|
176
192
|
createdAt: string;
|
|
177
193
|
checkpointId: string;
|
|
178
194
|
summary: string;
|
|
@@ -185,6 +201,62 @@ export declare function readThreadMessages(host: SixbHostView, storage: AgentSto
|
|
|
185
201
|
hasMore: boolean;
|
|
186
202
|
total: number;
|
|
187
203
|
}>;
|
|
204
|
+
export declare function principalKey(principal: Principal): string;
|
|
205
|
+
/** A thread as reading it answers: with the permission mode its reader shows. */
|
|
206
|
+
export declare function serializeThreadRead(host: SixbHostView, sixb: ReturnType<typeof requireRequestSixb>, thread: AgentThreadView): Promise<{
|
|
207
|
+
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
208
|
+
approvalModeSource?: import("@sixb/core").AgentApprovalModeSource | undefined;
|
|
209
|
+
status: "active" | "archived";
|
|
210
|
+
projectId: string;
|
|
211
|
+
id: string;
|
|
212
|
+
kind: "conversation" | "subagent";
|
|
213
|
+
createdAt: string;
|
|
214
|
+
ownerPrincipal: {
|
|
215
|
+
id: string;
|
|
216
|
+
type: "user" | "serviceAccount" | "system";
|
|
217
|
+
};
|
|
218
|
+
owner: {
|
|
219
|
+
id: string;
|
|
220
|
+
type: "user" | "serviceAccount" | "system";
|
|
221
|
+
displayName?: string | undefined;
|
|
222
|
+
};
|
|
223
|
+
participants: {
|
|
224
|
+
principal: {
|
|
225
|
+
id: string;
|
|
226
|
+
type: "user";
|
|
227
|
+
displayName?: string | undefined;
|
|
228
|
+
};
|
|
229
|
+
addedAt: string;
|
|
230
|
+
addedBy: {
|
|
231
|
+
id: string;
|
|
232
|
+
type: "user" | "serviceAccount" | "system";
|
|
233
|
+
};
|
|
234
|
+
}[];
|
|
235
|
+
activeRunId: string | null;
|
|
236
|
+
messageCount: number;
|
|
237
|
+
updatedAt: string;
|
|
238
|
+
title?: string | undefined;
|
|
239
|
+
computer?: {
|
|
240
|
+
id: string;
|
|
241
|
+
name: string;
|
|
242
|
+
folder: string;
|
|
243
|
+
online: boolean;
|
|
244
|
+
} | undefined;
|
|
245
|
+
runsOn?: "computer" | undefined;
|
|
246
|
+
sandboxState?: {
|
|
247
|
+
status: "unavailable" | "new" | "busy" | "ready" | "blocked";
|
|
248
|
+
name: string;
|
|
249
|
+
initialized: boolean;
|
|
250
|
+
} | undefined;
|
|
251
|
+
parent?: {
|
|
252
|
+
threadId: string;
|
|
253
|
+
key: string;
|
|
254
|
+
spawnedBy: string;
|
|
255
|
+
} | undefined;
|
|
256
|
+
sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
257
|
+
movedAt?: string | undefined;
|
|
258
|
+
lastMessageAt?: string | undefined;
|
|
259
|
+
}>;
|
|
188
260
|
export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
189
261
|
decorator: {};
|
|
190
262
|
store: {};
|
|
@@ -283,6 +355,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
283
355
|
title?: string | undefined;
|
|
284
356
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
285
357
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
358
|
+
computer?: {
|
|
359
|
+
id: string;
|
|
360
|
+
name: string;
|
|
361
|
+
folder: string;
|
|
362
|
+
online: boolean;
|
|
363
|
+
} | undefined;
|
|
286
364
|
runsOn?: "computer" | undefined;
|
|
287
365
|
sandboxState?: {
|
|
288
366
|
status: "unavailable" | "new" | "busy" | "ready" | "blocked";
|
|
@@ -295,7 +373,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
295
373
|
spawnedBy: string;
|
|
296
374
|
} | undefined;
|
|
297
375
|
sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
298
|
-
|
|
376
|
+
movedAt?: string | undefined;
|
|
299
377
|
lastMessageAt?: string | undefined;
|
|
300
378
|
}[];
|
|
301
379
|
};
|
|
@@ -326,6 +404,11 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
326
404
|
title?: string | undefined;
|
|
327
405
|
threadId?: string | undefined;
|
|
328
406
|
sandbox?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
407
|
+
computer?: {
|
|
408
|
+
id: string;
|
|
409
|
+
name: string;
|
|
410
|
+
folder: string;
|
|
411
|
+
} | undefined;
|
|
329
412
|
runsOn?: "computer" | undefined;
|
|
330
413
|
};
|
|
331
414
|
params: {};
|
|
@@ -366,6 +449,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
366
449
|
title?: string | undefined;
|
|
367
450
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
368
451
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
452
|
+
computer?: {
|
|
453
|
+
id: string;
|
|
454
|
+
name: string;
|
|
455
|
+
folder: string;
|
|
456
|
+
online: boolean;
|
|
457
|
+
} | undefined;
|
|
369
458
|
runsOn?: "computer" | undefined;
|
|
370
459
|
sandboxState?: {
|
|
371
460
|
status: "unavailable" | "new" | "busy" | "ready" | "blocked";
|
|
@@ -378,7 +467,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
378
467
|
spawnedBy: string;
|
|
379
468
|
} | undefined;
|
|
380
469
|
sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
381
|
-
|
|
470
|
+
movedAt?: string | undefined;
|
|
382
471
|
lastMessageAt?: string | undefined;
|
|
383
472
|
};
|
|
384
473
|
} | {
|
|
@@ -433,6 +522,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
433
522
|
title?: string | undefined;
|
|
434
523
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
435
524
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
525
|
+
computer?: {
|
|
526
|
+
id: string;
|
|
527
|
+
name: string;
|
|
528
|
+
folder: string;
|
|
529
|
+
online: boolean;
|
|
530
|
+
} | undefined;
|
|
436
531
|
runsOn?: "computer" | undefined;
|
|
437
532
|
sandboxState?: {
|
|
438
533
|
status: "unavailable" | "new" | "busy" | "ready" | "blocked";
|
|
@@ -445,7 +540,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
445
540
|
spawnedBy: string;
|
|
446
541
|
} | undefined;
|
|
447
542
|
sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
448
|
-
|
|
543
|
+
movedAt?: string | undefined;
|
|
449
544
|
lastMessageAt?: string | undefined;
|
|
450
545
|
};
|
|
451
546
|
};
|
|
@@ -507,6 +602,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
507
602
|
title?: string | undefined;
|
|
508
603
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
509
604
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
605
|
+
computer?: {
|
|
606
|
+
id: string;
|
|
607
|
+
name: string;
|
|
608
|
+
folder: string;
|
|
609
|
+
online: boolean;
|
|
610
|
+
} | undefined;
|
|
510
611
|
runsOn?: "computer" | undefined;
|
|
511
612
|
sandboxState?: {
|
|
512
613
|
status: "unavailable" | "new" | "busy" | "ready" | "blocked";
|
|
@@ -519,7 +620,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
519
620
|
spawnedBy: string;
|
|
520
621
|
} | undefined;
|
|
521
622
|
sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
522
|
-
|
|
623
|
+
movedAt?: string | undefined;
|
|
523
624
|
lastMessageAt?: string | undefined;
|
|
524
625
|
};
|
|
525
626
|
404: {
|
|
@@ -598,6 +699,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
598
699
|
title?: string | undefined;
|
|
599
700
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
600
701
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
702
|
+
computer?: {
|
|
703
|
+
id: string;
|
|
704
|
+
name: string;
|
|
705
|
+
folder: string;
|
|
706
|
+
online: boolean;
|
|
707
|
+
} | undefined;
|
|
601
708
|
runsOn?: "computer" | undefined;
|
|
602
709
|
sandboxState?: {
|
|
603
710
|
status: "unavailable" | "new" | "busy" | "ready" | "blocked";
|
|
@@ -610,7 +717,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
610
717
|
spawnedBy: string;
|
|
611
718
|
} | undefined;
|
|
612
719
|
sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
613
|
-
|
|
720
|
+
movedAt?: string | undefined;
|
|
614
721
|
lastMessageAt?: string | undefined;
|
|
615
722
|
};
|
|
616
723
|
404: {
|
|
@@ -743,6 +850,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
743
850
|
title?: string | undefined;
|
|
744
851
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
745
852
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
853
|
+
computer?: {
|
|
854
|
+
id: string;
|
|
855
|
+
name: string;
|
|
856
|
+
folder: string;
|
|
857
|
+
online: boolean;
|
|
858
|
+
} | undefined;
|
|
746
859
|
runsOn?: "computer" | undefined;
|
|
747
860
|
sandboxState?: {
|
|
748
861
|
status: "unavailable" | "new" | "busy" | "ready" | "blocked";
|
|
@@ -755,7 +868,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
755
868
|
spawnedBy: string;
|
|
756
869
|
} | undefined;
|
|
757
870
|
sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
758
|
-
|
|
871
|
+
movedAt?: string | undefined;
|
|
759
872
|
lastMessageAt?: string | undefined;
|
|
760
873
|
};
|
|
761
874
|
} | {
|
|
@@ -812,6 +925,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
812
925
|
title?: string | undefined;
|
|
813
926
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
814
927
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
928
|
+
computer?: {
|
|
929
|
+
id: string;
|
|
930
|
+
name: string;
|
|
931
|
+
folder: string;
|
|
932
|
+
online: boolean;
|
|
933
|
+
} | undefined;
|
|
815
934
|
runsOn?: "computer" | undefined;
|
|
816
935
|
sandboxState?: {
|
|
817
936
|
status: "unavailable" | "new" | "busy" | "ready" | "blocked";
|
|
@@ -824,7 +943,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
824
943
|
spawnedBy: string;
|
|
825
944
|
} | undefined;
|
|
826
945
|
sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
827
|
-
|
|
946
|
+
movedAt?: string | undefined;
|
|
828
947
|
lastMessageAt?: string | undefined;
|
|
829
948
|
};
|
|
830
949
|
};
|
|
@@ -892,6 +1011,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
892
1011
|
title?: string | undefined;
|
|
893
1012
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
894
1013
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
1014
|
+
computer?: {
|
|
1015
|
+
id: string;
|
|
1016
|
+
name: string;
|
|
1017
|
+
folder: string;
|
|
1018
|
+
online: boolean;
|
|
1019
|
+
} | undefined;
|
|
895
1020
|
runsOn?: "computer" | undefined;
|
|
896
1021
|
sandboxState?: {
|
|
897
1022
|
status: "unavailable" | "new" | "busy" | "ready" | "blocked";
|
|
@@ -904,7 +1029,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
904
1029
|
spawnedBy: string;
|
|
905
1030
|
} | undefined;
|
|
906
1031
|
sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
907
|
-
|
|
1032
|
+
movedAt?: string | undefined;
|
|
908
1033
|
lastMessageAt?: string | undefined;
|
|
909
1034
|
};
|
|
910
1035
|
404: {
|
|
@@ -1016,6 +1141,17 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1016
1141
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
1017
1142
|
dynamic?: boolean | undefined;
|
|
1018
1143
|
providerExecuted?: boolean | undefined;
|
|
1144
|
+
outputFile?: {
|
|
1145
|
+
path: string;
|
|
1146
|
+
fileRef: {
|
|
1147
|
+
blobId: string;
|
|
1148
|
+
digest: string;
|
|
1149
|
+
sizeBytes: number;
|
|
1150
|
+
fileName?: string | undefined;
|
|
1151
|
+
mediaType?: string | undefined;
|
|
1152
|
+
logicalPath?: string | undefined;
|
|
1153
|
+
};
|
|
1154
|
+
} | undefined;
|
|
1019
1155
|
} | {
|
|
1020
1156
|
type: "tool-call";
|
|
1021
1157
|
input: import("../schemas/common").JsonValue;
|
|
@@ -1063,7 +1199,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1063
1199
|
} | {
|
|
1064
1200
|
error: {
|
|
1065
1201
|
at: string;
|
|
1066
|
-
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
1202
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
1067
1203
|
message: string;
|
|
1068
1204
|
retryable: boolean;
|
|
1069
1205
|
details?: import("../schemas/common").JsonValue | undefined;
|
|
@@ -1097,6 +1233,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1097
1233
|
type: "user" | "serviceAccount" | "system";
|
|
1098
1234
|
} | undefined;
|
|
1099
1235
|
compaction?: {
|
|
1236
|
+
reason: "threshold" | "overflow";
|
|
1100
1237
|
createdAt: string;
|
|
1101
1238
|
checkpointId: string;
|
|
1102
1239
|
summary: string;
|
|
@@ -1280,7 +1417,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1280
1417
|
attempt: number;
|
|
1281
1418
|
triggerMessageId: string;
|
|
1282
1419
|
streamId: string;
|
|
1283
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1420
|
+
error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1284
1421
|
requestedBy?: {
|
|
1285
1422
|
id: string;
|
|
1286
1423
|
type: "user" | "serviceAccount";
|
|
@@ -1372,7 +1509,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1372
1509
|
attempt: number;
|
|
1373
1510
|
triggerMessageId: string;
|
|
1374
1511
|
streamId: string;
|
|
1375
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1512
|
+
error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1376
1513
|
requestedBy?: {
|
|
1377
1514
|
id: string;
|
|
1378
1515
|
type: "user" | "serviceAccount";
|
|
@@ -1466,7 +1603,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1466
1603
|
attempt: number;
|
|
1467
1604
|
triggerMessageId: string;
|
|
1468
1605
|
streamId: string;
|
|
1469
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1606
|
+
error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1470
1607
|
requestedBy?: {
|
|
1471
1608
|
id: string;
|
|
1472
1609
|
type: "user" | "serviceAccount";
|
|
@@ -1553,7 +1690,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1553
1690
|
attempt: number;
|
|
1554
1691
|
triggerMessageId: string;
|
|
1555
1692
|
streamId: string;
|
|
1556
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1693
|
+
error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1557
1694
|
requestedBy?: {
|
|
1558
1695
|
id: string;
|
|
1559
1696
|
type: "user" | "serviceAccount";
|
|
@@ -1648,7 +1785,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1648
1785
|
attempt: number;
|
|
1649
1786
|
triggerMessageId: string;
|
|
1650
1787
|
streamId: string;
|
|
1651
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1788
|
+
error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1652
1789
|
requestedBy?: {
|
|
1653
1790
|
id: string;
|
|
1654
1791
|
type: "user" | "serviceAccount";
|
|
@@ -1740,7 +1877,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1740
1877
|
attempt: number;
|
|
1741
1878
|
triggerMessageId: string;
|
|
1742
1879
|
streamId: string;
|
|
1743
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1880
|
+
error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1744
1881
|
requestedBy?: {
|
|
1745
1882
|
id: string;
|
|
1746
1883
|
type: "user" | "serviceAccount";
|
|
@@ -1810,6 +1947,75 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1810
1947
|
};
|
|
1811
1948
|
};
|
|
1812
1949
|
};
|
|
1950
|
+
} & {
|
|
1951
|
+
api: {
|
|
1952
|
+
"agent-threads": {
|
|
1953
|
+
":threadId": {
|
|
1954
|
+
context: {
|
|
1955
|
+
get: {
|
|
1956
|
+
body: unknown;
|
|
1957
|
+
params: {
|
|
1958
|
+
threadId: string;
|
|
1959
|
+
};
|
|
1960
|
+
query: {
|
|
1961
|
+
modelId?: string | undefined;
|
|
1962
|
+
provider?: string | undefined;
|
|
1963
|
+
};
|
|
1964
|
+
headers: unknown;
|
|
1965
|
+
response: {
|
|
1966
|
+
200: {
|
|
1967
|
+
model: {
|
|
1968
|
+
modelId: string;
|
|
1969
|
+
provider: string;
|
|
1970
|
+
};
|
|
1971
|
+
windowTokens: number;
|
|
1972
|
+
limitTokens: number;
|
|
1973
|
+
parts?: {
|
|
1974
|
+
part: "system" | "ontology" | "tools" | "instructions" | "files" | "summary" | "messages" | "memory" | "skills" | "toolResults";
|
|
1975
|
+
tokens: number;
|
|
1976
|
+
}[] | undefined;
|
|
1977
|
+
usedTokens?: number | undefined;
|
|
1978
|
+
lastCall?: {
|
|
1979
|
+
inputTokens: number;
|
|
1980
|
+
occurredAt: string;
|
|
1981
|
+
outputTokens?: number | undefined;
|
|
1982
|
+
cacheReadInputTokens?: number | undefined;
|
|
1983
|
+
} | undefined;
|
|
1984
|
+
lastCompaction?: {
|
|
1985
|
+
reason: "threshold" | "overflow";
|
|
1986
|
+
createdAt: string;
|
|
1987
|
+
estimatedInputTokensBefore: number;
|
|
1988
|
+
estimatedInputTokensAfter: number;
|
|
1989
|
+
} | undefined;
|
|
1990
|
+
};
|
|
1991
|
+
404: {
|
|
1992
|
+
error: string;
|
|
1993
|
+
};
|
|
1994
|
+
409: {
|
|
1995
|
+
error: string;
|
|
1996
|
+
code?: string | undefined;
|
|
1997
|
+
};
|
|
1998
|
+
400: {
|
|
1999
|
+
error: string;
|
|
2000
|
+
};
|
|
2001
|
+
501: {
|
|
2002
|
+
error: string;
|
|
2003
|
+
};
|
|
2004
|
+
422: {
|
|
2005
|
+
type: "validation";
|
|
2006
|
+
on: string;
|
|
2007
|
+
summary?: string;
|
|
2008
|
+
message?: string;
|
|
2009
|
+
found?: unknown;
|
|
2010
|
+
property?: string;
|
|
2011
|
+
expected?: string;
|
|
2012
|
+
};
|
|
2013
|
+
};
|
|
2014
|
+
};
|
|
2015
|
+
};
|
|
2016
|
+
};
|
|
2017
|
+
};
|
|
2018
|
+
};
|
|
1813
2019
|
} & {
|
|
1814
2020
|
api: {
|
|
1815
2021
|
"agent-threads": {
|
|
@@ -1839,7 +2045,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1839
2045
|
attempt: number;
|
|
1840
2046
|
triggerMessageId: string;
|
|
1841
2047
|
streamId: string;
|
|
1842
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2048
|
+
error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1843
2049
|
requestedBy?: {
|
|
1844
2050
|
id: string;
|
|
1845
2051
|
type: "user" | "serviceAccount";
|
|
@@ -1940,7 +2146,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1940
2146
|
attempt: number;
|
|
1941
2147
|
triggerMessageId: string;
|
|
1942
2148
|
streamId: string;
|
|
1943
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2149
|
+
error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1944
2150
|
requestedBy?: {
|
|
1945
2151
|
id: string;
|
|
1946
2152
|
type: "user" | "serviceAccount";
|
|
@@ -2039,7 +2245,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
2039
2245
|
attempt: number;
|
|
2040
2246
|
triggerMessageId: string;
|
|
2041
2247
|
streamId: string;
|
|
2042
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2248
|
+
error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2043
2249
|
requestedBy?: {
|
|
2044
2250
|
id: string;
|
|
2045
2251
|
type: "user" | "serviceAccount";
|
|
@@ -2126,7 +2332,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
2126
2332
|
attempt: number;
|
|
2127
2333
|
triggerMessageId: string;
|
|
2128
2334
|
streamId: string;
|
|
2129
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2335
|
+
error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2130
2336
|
requestedBy?: {
|
|
2131
2337
|
id: string;
|
|
2132
2338
|
type: "user" | "serviceAccount";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,eAAe,EAIpB,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AASnB,OAAO,EAIL,KAAK,YAAY,EAGjB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAY,CAAC,EAAE,MAAM,KAAK,CAAA;AAEjC,OAAO,EAIL,kBAAkB,EACnB,MAAM,eAAe,CAAA;AAStB,OAAO,EAML,wBAAwB,EAKxB,cAAc,EAOd,iBAAiB,EAQlB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EACL,gBAAgB,EAIjB,MAAM,eAAe,CAAA;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAu7BvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-accounting.d.ts","sourceRoot":"","sources":["../../src/routes/ai-accounting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ai-accounting.d.ts","sourceRoot":"","sources":["../../src/routes/ai-accounting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,YAAY,CAAA;AAahE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiUpC,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6WzE"}
|
package/dist/routes/auth.d.ts
CHANGED
|
@@ -271,6 +271,14 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
271
271
|
displayName?: string | undefined;
|
|
272
272
|
avatarUrl?: string | undefined;
|
|
273
273
|
};
|
|
274
|
+
access: {
|
|
275
|
+
activity: boolean;
|
|
276
|
+
logs: boolean;
|
|
277
|
+
usage: boolean;
|
|
278
|
+
serviceAccounts: boolean;
|
|
279
|
+
members: boolean;
|
|
280
|
+
console: boolean;
|
|
281
|
+
};
|
|
274
282
|
authenticated: true;
|
|
275
283
|
csrfToken?: string | undefined;
|
|
276
284
|
};
|
|
@@ -1398,6 +1406,7 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
1398
1406
|
};
|
|
1399
1407
|
groupIds: string[];
|
|
1400
1408
|
managedGroupIds: string[];
|
|
1409
|
+
lastActiveAt?: string | undefined;
|
|
1401
1410
|
}[];
|
|
1402
1411
|
};
|
|
1403
1412
|
401: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts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