@cogitator-ai/tetsu 0.4.11 → 0.5.0
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 +58 -44
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +21 -3
- package/dist/auth.js.map +1 -1
- package/dist/connection.d.ts +13 -0
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +15 -1
- package/dist/connection.js.map +1 -1
- package/dist/controller.d.ts +120 -71
- package/dist/controller.d.ts.map +1 -1
- package/dist/controller.js +62 -65
- package/dist/controller.js.map +1 -1
- package/dist/operations.d.ts +9 -12
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +22 -50
- package/dist/operations.js.map +1 -1
- package/dist/schemas.d.ts +82 -4
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +94 -19
- package/dist/schemas.js.map +1 -1
- package/dist/socket.js +5 -5
- package/dist/socket.js.map +1 -1
- package/dist/streaming.d.ts +0 -14
- package/dist/streaming.d.ts.map +1 -1
- package/dist/streaming.js +0 -44
- package/dist/streaming.js.map +1 -1
- package/dist/types.d.ts +16 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +11 -10
package/dist/controller.d.ts
CHANGED
|
@@ -125,7 +125,6 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
125
125
|
readonly response: {
|
|
126
126
|
readonly 200: z.ZodObject<{
|
|
127
127
|
output: z.ZodString;
|
|
128
|
-
structured: z.ZodOptional<z.ZodUnknown>;
|
|
129
128
|
threadId: z.ZodString;
|
|
130
129
|
usage: z.ZodObject<{
|
|
131
130
|
inputTokens: z.ZodNumber;
|
|
@@ -141,10 +140,10 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
141
140
|
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
142
141
|
}, z.core.$strip>>;
|
|
143
142
|
reasoning: z.ZodOptional<z.ZodString>;
|
|
144
|
-
status: z.
|
|
143
|
+
status: z.ZodEnum<{
|
|
145
144
|
completed: "completed";
|
|
146
145
|
paused: "paused";
|
|
147
|
-
}
|
|
146
|
+
}>;
|
|
148
147
|
pendingApprovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
149
148
|
toolCallId: z.ZodString;
|
|
150
149
|
toolName: z.ZodString;
|
|
@@ -152,6 +151,15 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
152
151
|
description: z.ZodString;
|
|
153
152
|
sideEffects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
154
153
|
}, z.core.$strip>>>;
|
|
154
|
+
structured: z.ZodOptional<z.ZodUnknown>;
|
|
155
|
+
structuredError: z.ZodOptional<z.ZodString>;
|
|
156
|
+
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
157
|
+
blocked: z.ZodOptional<z.ZodEnum<{
|
|
158
|
+
content_filter: "content_filter";
|
|
159
|
+
refusal: "refusal";
|
|
160
|
+
}>>;
|
|
161
|
+
iterationLimitReached: z.ZodOptional<z.ZodLiteral<true>>;
|
|
162
|
+
traceId: z.ZodString;
|
|
155
163
|
}, z.core.$strip>;
|
|
156
164
|
readonly 403: z.ZodObject<{
|
|
157
165
|
status: z.ZodNumber;
|
|
@@ -223,44 +231,27 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
223
231
|
[x: string]: string;
|
|
224
232
|
}>;
|
|
225
233
|
}, z.core.$strip>;
|
|
234
|
+
readonly 415: z.ZodObject<{
|
|
235
|
+
status: z.ZodNumber;
|
|
236
|
+
message: z.ZodString;
|
|
237
|
+
error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
|
|
238
|
+
}, z.core.$strip>;
|
|
226
239
|
};
|
|
227
240
|
}, {
|
|
228
241
|
readonly beforeParse: readonly [import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
229
242
|
readonly params: {
|
|
230
243
|
[x: string]: string;
|
|
231
244
|
};
|
|
232
|
-
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth"
|
|
245
|
+
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth">>, import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
246
|
+
readonly params: {
|
|
247
|
+
[x: string]: string;
|
|
248
|
+
};
|
|
249
|
+
}, unknown>];
|
|
233
250
|
readonly beforeHandle: readonly [import("@tetsujs/core").Hook<"beforeHandle", import("@tetsujs/core").BaseCtx, unknown>];
|
|
234
251
|
readonly onError: readonly [import("@tetsujs/core").Hook<"onError", import("@tetsujs/core").BaseCtx & {
|
|
235
252
|
readonly error: unknown;
|
|
236
253
|
}, unknown>];
|
|
237
|
-
}, undefined, "POST", Promise<
|
|
238
|
-
output: string;
|
|
239
|
-
threadId: string;
|
|
240
|
-
usage: {
|
|
241
|
-
inputTokens: number;
|
|
242
|
-
outputTokens: number;
|
|
243
|
-
totalTokens: number;
|
|
244
|
-
reasoningTokens?: number | undefined;
|
|
245
|
-
cachedInputTokens?: number | undefined;
|
|
246
|
-
cacheWriteTokens?: number | undefined;
|
|
247
|
-
};
|
|
248
|
-
toolCalls: {
|
|
249
|
-
id: string;
|
|
250
|
-
name: string;
|
|
251
|
-
arguments: Record<string, unknown>;
|
|
252
|
-
}[];
|
|
253
|
-
structured?: unknown;
|
|
254
|
-
reasoning?: string | undefined;
|
|
255
|
-
status?: "completed" | "paused" | undefined;
|
|
256
|
-
pendingApprovals?: {
|
|
257
|
-
toolCallId: string;
|
|
258
|
-
toolName: string;
|
|
259
|
-
arguments: Record<string, unknown>;
|
|
260
|
-
description: string;
|
|
261
|
-
sideEffects?: string[] | undefined;
|
|
262
|
-
}[] | undefined;
|
|
263
|
-
}>, false>;
|
|
254
|
+
}, undefined, "POST", Promise<import("@cogitator-ai/server-shared").AgentRunResponse>, false>;
|
|
264
255
|
streamAgent: import("@tetsujs/core").RouteDef<"/agents/:name/stream", {
|
|
265
256
|
readonly params: z.ZodObject<{
|
|
266
257
|
name: z.ZodString;
|
|
@@ -271,6 +262,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
271
262
|
threadId: z.ZodOptional<z.ZodString>;
|
|
272
263
|
}, z.core.$strip>;
|
|
273
264
|
readonly response: {
|
|
265
|
+
readonly 200: null;
|
|
274
266
|
readonly 403: z.ZodObject<{
|
|
275
267
|
status: z.ZodNumber;
|
|
276
268
|
message: z.ZodString;
|
|
@@ -283,13 +275,22 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
283
275
|
message: z.ZodString;
|
|
284
276
|
error: z.ZodLiteral<"AGENT_NOT_FOUND">;
|
|
285
277
|
}, z.core.$strip>;
|
|
278
|
+
readonly 415: z.ZodObject<{
|
|
279
|
+
status: z.ZodNumber;
|
|
280
|
+
message: z.ZodString;
|
|
281
|
+
error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
|
|
282
|
+
}, z.core.$strip>;
|
|
286
283
|
};
|
|
287
284
|
}, {
|
|
288
285
|
readonly beforeParse: readonly [import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
289
286
|
readonly params: {
|
|
290
287
|
[x: string]: string;
|
|
291
288
|
};
|
|
292
|
-
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth"
|
|
289
|
+
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth">>, import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
290
|
+
readonly params: {
|
|
291
|
+
[x: string]: string;
|
|
292
|
+
};
|
|
293
|
+
}, unknown>];
|
|
293
294
|
readonly onError: readonly [import("@tetsujs/core").Hook<"onError", import("@tetsujs/core").BaseCtx & {
|
|
294
295
|
readonly error: unknown;
|
|
295
296
|
}, unknown>];
|
|
@@ -312,7 +313,6 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
312
313
|
readonly response: {
|
|
313
314
|
readonly 200: z.ZodObject<{
|
|
314
315
|
output: z.ZodString;
|
|
315
|
-
structured: z.ZodOptional<z.ZodUnknown>;
|
|
316
316
|
threadId: z.ZodString;
|
|
317
317
|
usage: z.ZodObject<{
|
|
318
318
|
inputTokens: z.ZodNumber;
|
|
@@ -328,10 +328,10 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
328
328
|
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
329
329
|
}, z.core.$strip>>;
|
|
330
330
|
reasoning: z.ZodOptional<z.ZodString>;
|
|
331
|
-
status: z.
|
|
331
|
+
status: z.ZodEnum<{
|
|
332
332
|
completed: "completed";
|
|
333
333
|
paused: "paused";
|
|
334
|
-
}
|
|
334
|
+
}>;
|
|
335
335
|
pendingApprovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
336
336
|
toolCallId: z.ZodString;
|
|
337
337
|
toolName: z.ZodString;
|
|
@@ -339,6 +339,15 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
339
339
|
description: z.ZodString;
|
|
340
340
|
sideEffects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
341
341
|
}, z.core.$strip>>>;
|
|
342
|
+
structured: z.ZodOptional<z.ZodUnknown>;
|
|
343
|
+
structuredError: z.ZodOptional<z.ZodString>;
|
|
344
|
+
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
345
|
+
blocked: z.ZodOptional<z.ZodEnum<{
|
|
346
|
+
content_filter: "content_filter";
|
|
347
|
+
refusal: "refusal";
|
|
348
|
+
}>>;
|
|
349
|
+
iterationLimitReached: z.ZodOptional<z.ZodLiteral<true>>;
|
|
350
|
+
traceId: z.ZodString;
|
|
342
351
|
}, z.core.$strip>;
|
|
343
352
|
readonly 403: z.ZodObject<{
|
|
344
353
|
status: z.ZodNumber;
|
|
@@ -410,44 +419,27 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
410
419
|
[x: string]: string;
|
|
411
420
|
}>;
|
|
412
421
|
}, z.core.$strip>;
|
|
422
|
+
readonly 415: z.ZodObject<{
|
|
423
|
+
status: z.ZodNumber;
|
|
424
|
+
message: z.ZodString;
|
|
425
|
+
error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
|
|
426
|
+
}, z.core.$strip>;
|
|
413
427
|
};
|
|
414
428
|
}, {
|
|
415
429
|
readonly beforeParse: readonly [import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
416
430
|
readonly params: {
|
|
417
431
|
[x: string]: string;
|
|
418
432
|
};
|
|
419
|
-
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth"
|
|
433
|
+
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth">>, import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
434
|
+
readonly params: {
|
|
435
|
+
[x: string]: string;
|
|
436
|
+
};
|
|
437
|
+
}, unknown>];
|
|
420
438
|
readonly beforeHandle: readonly [import("@tetsujs/core").Hook<"beforeHandle", import("@tetsujs/core").BaseCtx, unknown>];
|
|
421
439
|
readonly onError: readonly [import("@tetsujs/core").Hook<"onError", import("@tetsujs/core").BaseCtx & {
|
|
422
440
|
readonly error: unknown;
|
|
423
441
|
}, unknown>];
|
|
424
|
-
}, undefined, "POST", Promise<
|
|
425
|
-
output: string;
|
|
426
|
-
threadId: string;
|
|
427
|
-
usage: {
|
|
428
|
-
inputTokens: number;
|
|
429
|
-
outputTokens: number;
|
|
430
|
-
totalTokens: number;
|
|
431
|
-
reasoningTokens?: number | undefined;
|
|
432
|
-
cachedInputTokens?: number | undefined;
|
|
433
|
-
cacheWriteTokens?: number | undefined;
|
|
434
|
-
};
|
|
435
|
-
toolCalls: {
|
|
436
|
-
id: string;
|
|
437
|
-
name: string;
|
|
438
|
-
arguments: Record<string, unknown>;
|
|
439
|
-
}[];
|
|
440
|
-
structured?: unknown;
|
|
441
|
-
reasoning?: string | undefined;
|
|
442
|
-
status?: "completed" | "paused" | undefined;
|
|
443
|
-
pendingApprovals?: {
|
|
444
|
-
toolCallId: string;
|
|
445
|
-
toolName: string;
|
|
446
|
-
arguments: Record<string, unknown>;
|
|
447
|
-
description: string;
|
|
448
|
-
sideEffects?: string[] | undefined;
|
|
449
|
-
}[] | undefined;
|
|
450
|
-
}>, false>;
|
|
442
|
+
}, undefined, "POST", Promise<import("@cogitator-ai/server-shared").AgentRunResponse>, false>;
|
|
451
443
|
streamResumeAgent: import("@tetsujs/core").RouteDef<"/agents/:name/resume/stream", {
|
|
452
444
|
readonly params: z.ZodObject<{
|
|
453
445
|
name: z.ZodString;
|
|
@@ -464,6 +456,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
464
456
|
}, z.core.$strip>>;
|
|
465
457
|
}, z.core.$strip>;
|
|
466
458
|
readonly response: {
|
|
459
|
+
readonly 200: null;
|
|
467
460
|
readonly 403: z.ZodObject<{
|
|
468
461
|
status: z.ZodNumber;
|
|
469
462
|
message: z.ZodString;
|
|
@@ -476,13 +469,22 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
476
469
|
message: z.ZodString;
|
|
477
470
|
error: z.ZodLiteral<"AGENT_NOT_FOUND">;
|
|
478
471
|
}, z.core.$strip>;
|
|
472
|
+
readonly 415: z.ZodObject<{
|
|
473
|
+
status: z.ZodNumber;
|
|
474
|
+
message: z.ZodString;
|
|
475
|
+
error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
|
|
476
|
+
}, z.core.$strip>;
|
|
479
477
|
};
|
|
480
478
|
}, {
|
|
481
479
|
readonly beforeParse: readonly [import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
482
480
|
readonly params: {
|
|
483
481
|
[x: string]: string;
|
|
484
482
|
};
|
|
485
|
-
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth"
|
|
483
|
+
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth">>, import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
484
|
+
readonly params: {
|
|
485
|
+
[x: string]: string;
|
|
486
|
+
};
|
|
487
|
+
}, unknown>];
|
|
486
488
|
readonly onError: readonly [import("@tetsujs/core").Hook<"onError", import("@tetsujs/core").BaseCtx & {
|
|
487
489
|
readonly error: unknown;
|
|
488
490
|
}, unknown>];
|
|
@@ -581,6 +583,11 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
581
583
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
582
584
|
}, z.core.$strip>;
|
|
583
585
|
readonly response: {
|
|
586
|
+
readonly 415: z.ZodObject<{
|
|
587
|
+
status: z.ZodNumber;
|
|
588
|
+
message: z.ZodString;
|
|
589
|
+
error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
|
|
590
|
+
}, z.core.$strip>;
|
|
584
591
|
readonly 201: z.ZodObject<{
|
|
585
592
|
success: z.ZodLiteral<true>;
|
|
586
593
|
}, z.core.$strip>;
|
|
@@ -609,7 +616,11 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
609
616
|
readonly params: {
|
|
610
617
|
[x: string]: string;
|
|
611
618
|
};
|
|
612
|
-
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth"
|
|
619
|
+
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth">>, import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
620
|
+
readonly params: {
|
|
621
|
+
[x: string]: string;
|
|
622
|
+
};
|
|
623
|
+
}, unknown>];
|
|
613
624
|
readonly onError: readonly [import("@tetsujs/core").Hook<"onError", import("@tetsujs/core").BaseCtx & {
|
|
614
625
|
readonly error: unknown;
|
|
615
626
|
}, unknown>];
|
|
@@ -709,7 +720,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
709
720
|
options: z.ZodOptional<z.ZodObject<{
|
|
710
721
|
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
711
722
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
712
|
-
checkpoint: z.ZodOptional<z.
|
|
723
|
+
checkpoint: z.ZodOptional<z.ZodLiteral<false>>;
|
|
713
724
|
}, z.core.$strip>>;
|
|
714
725
|
}, z.core.$strip>;
|
|
715
726
|
readonly response: {
|
|
@@ -793,13 +804,22 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
793
804
|
[x: string]: string;
|
|
794
805
|
}>;
|
|
795
806
|
}, z.core.$strip>;
|
|
807
|
+
readonly 415: z.ZodObject<{
|
|
808
|
+
status: z.ZodNumber;
|
|
809
|
+
message: z.ZodString;
|
|
810
|
+
error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
|
|
811
|
+
}, z.core.$strip>;
|
|
796
812
|
};
|
|
797
813
|
}, {
|
|
798
814
|
readonly beforeParse: readonly [import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
799
815
|
readonly params: {
|
|
800
816
|
[x: string]: string;
|
|
801
817
|
};
|
|
802
|
-
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth"
|
|
818
|
+
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth">>, import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
819
|
+
readonly params: {
|
|
820
|
+
[x: string]: string;
|
|
821
|
+
};
|
|
822
|
+
}, unknown>];
|
|
803
823
|
readonly beforeHandle: readonly [import("@tetsujs/core").Hook<"beforeHandle", import("@tetsujs/core").BaseCtx, unknown>];
|
|
804
824
|
readonly onError: readonly [import("@tetsujs/core").Hook<"onError", import("@tetsujs/core").BaseCtx & {
|
|
805
825
|
readonly error: unknown;
|
|
@@ -823,22 +843,32 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
823
843
|
options: z.ZodOptional<z.ZodObject<{
|
|
824
844
|
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
825
845
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
826
|
-
checkpoint: z.ZodOptional<z.
|
|
846
|
+
checkpoint: z.ZodOptional<z.ZodLiteral<false>>;
|
|
827
847
|
}, z.core.$strip>>;
|
|
828
848
|
}, z.core.$strip>;
|
|
829
849
|
readonly response: {
|
|
850
|
+
readonly 200: null;
|
|
830
851
|
readonly 404: z.ZodObject<{
|
|
831
852
|
status: z.ZodNumber;
|
|
832
853
|
message: z.ZodString;
|
|
833
854
|
error: z.ZodLiteral<"WORKFLOW_NOT_FOUND">;
|
|
834
855
|
}, z.core.$strip>;
|
|
856
|
+
readonly 415: z.ZodObject<{
|
|
857
|
+
status: z.ZodNumber;
|
|
858
|
+
message: z.ZodString;
|
|
859
|
+
error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
|
|
860
|
+
}, z.core.$strip>;
|
|
835
861
|
};
|
|
836
862
|
}, {
|
|
837
863
|
readonly beforeParse: readonly [import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
838
864
|
readonly params: {
|
|
839
865
|
[x: string]: string;
|
|
840
866
|
};
|
|
841
|
-
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth"
|
|
867
|
+
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth">>, import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
868
|
+
readonly params: {
|
|
869
|
+
[x: string]: string;
|
|
870
|
+
};
|
|
871
|
+
}, unknown>];
|
|
842
872
|
readonly onError: readonly [import("@tetsujs/core").Hook<"onError", import("@tetsujs/core").BaseCtx & {
|
|
843
873
|
readonly error: unknown;
|
|
844
874
|
}, unknown>];
|
|
@@ -976,13 +1006,22 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
976
1006
|
[x: string]: string;
|
|
977
1007
|
}>;
|
|
978
1008
|
}, z.core.$strip>;
|
|
1009
|
+
readonly 415: z.ZodObject<{
|
|
1010
|
+
status: z.ZodNumber;
|
|
1011
|
+
message: z.ZodString;
|
|
1012
|
+
error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
|
|
1013
|
+
}, z.core.$strip>;
|
|
979
1014
|
};
|
|
980
1015
|
}, {
|
|
981
1016
|
readonly beforeParse: readonly [import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
982
1017
|
readonly params: {
|
|
983
1018
|
[x: string]: string;
|
|
984
1019
|
};
|
|
985
|
-
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth"
|
|
1020
|
+
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth">>, import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
1021
|
+
readonly params: {
|
|
1022
|
+
[x: string]: string;
|
|
1023
|
+
};
|
|
1024
|
+
}, unknown>];
|
|
986
1025
|
readonly beforeHandle: readonly [import("@tetsujs/core").Hook<"beforeHandle", import("@tetsujs/core").BaseCtx, unknown>];
|
|
987
1026
|
readonly onError: readonly [import("@tetsujs/core").Hook<"onError", import("@tetsujs/core").BaseCtx & {
|
|
988
1027
|
readonly error: unknown;
|
|
@@ -1019,6 +1058,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
1019
1058
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1020
1059
|
}, z.core.$strip>;
|
|
1021
1060
|
readonly response: {
|
|
1061
|
+
readonly 200: null;
|
|
1022
1062
|
readonly 403: z.ZodObject<{
|
|
1023
1063
|
status: z.ZodNumber;
|
|
1024
1064
|
message: z.ZodString;
|
|
@@ -1031,13 +1071,22 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
|
|
|
1031
1071
|
message: z.ZodString;
|
|
1032
1072
|
error: z.ZodLiteral<"SWARM_NOT_FOUND">;
|
|
1033
1073
|
}, z.core.$strip>;
|
|
1074
|
+
readonly 415: z.ZodObject<{
|
|
1075
|
+
status: z.ZodNumber;
|
|
1076
|
+
message: z.ZodString;
|
|
1077
|
+
error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
|
|
1078
|
+
}, z.core.$strip>;
|
|
1034
1079
|
};
|
|
1035
1080
|
}, {
|
|
1036
1081
|
readonly beforeParse: readonly [import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
1037
1082
|
readonly params: {
|
|
1038
1083
|
[x: string]: string;
|
|
1039
1084
|
};
|
|
1040
|
-
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth"
|
|
1085
|
+
}, Pick<import("./auth.js").CallerFields, "cogitatorAuth">>, import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
|
|
1086
|
+
readonly params: {
|
|
1087
|
+
[x: string]: string;
|
|
1088
|
+
};
|
|
1089
|
+
}, unknown>];
|
|
1041
1090
|
readonly onError: readonly [import("@tetsujs/core").Hook<"onError", import("@tetsujs/core").BaseCtx & {
|
|
1042
1091
|
readonly error: unknown;
|
|
1043
1092
|
}, unknown>];
|
package/dist/controller.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../src/controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../src/controller.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACV,OAAO,EAMR,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiD7B,OAAO,KAAK,EAAe,aAAa,EAAE,MAAM,YAAY,CAAC;AAoE7D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0c9B,CAAC"}
|