@aventurevc/api-schemas 0.8.348 → 0.8.350
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/enrichment/batch.d.ts +14 -1
- package/dist/enrichment/batch.js +4 -1
- package/dist/enrichment/instruction.d.ts +24 -0
- package/dist/enrichment/instruction.js +20 -0
- package/dist/entity/person-owner.d.ts +1 -0
- package/dist/entity/person-owner.js +1 -0
- package/dist/http/status-code.d.ts +1 -0
- package/dist/http/status-code.js +1 -0
- package/dist/openapi-component-manifest.js +4 -0
- package/dist/problem/type.d.ts +2 -0
- package/dist/problem/type.js +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const EnrichmentBatchSchemaDefinition: z.ZodObject<{
|
|
3
3
|
entityId: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
4
|
+
instruction: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
5
|
+
record: {
|
|
6
|
+
entityId?: string | null | undefined;
|
|
7
|
+
personId?: string | null | undefined;
|
|
8
|
+
};
|
|
9
|
+
userPrompt?: string | null | undefined;
|
|
10
|
+
}, import("./instruction.ts").EnrichmentInstructionSchemaInput, z.core.$ZodTypeInternals<{
|
|
11
|
+
record: {
|
|
12
|
+
entityId?: string | null | undefined;
|
|
13
|
+
personId?: string | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
userPrompt?: string | null | undefined;
|
|
16
|
+
}, import("./instruction.ts").EnrichmentInstructionSchemaInput>>>>;
|
|
4
17
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
5
18
|
COMPREHENSIVE: "COMPREHENSIVE";
|
|
6
19
|
INDIVIDUAL: "INDIVIDUAL";
|
|
@@ -15,7 +28,7 @@ type EnrichmentBatchDefinition = z.infer<typeof EnrichmentBatchSchemaDefinition>
|
|
|
15
28
|
export interface EnrichmentBatchSchemaInput extends z.input<typeof EnrichmentBatchSchemaDefinition> {
|
|
16
29
|
}
|
|
17
30
|
/**
|
|
18
|
-
* Existing records to enrich in one call, with
|
|
31
|
+
* Existing records to enrich in one call, with shared run options and optional additional instructions for individual selected records
|
|
19
32
|
*
|
|
20
33
|
* @openapiSchema EnrichmentBatch
|
|
21
34
|
* @endpoint POST /v1/enrichments
|
package/dist/enrichment/batch.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
|
+
import { EnrichmentInstructionSchema } from "./instruction.js";
|
|
3
4
|
import { EnrichmentModeSchema } from "./mode.js";
|
|
4
5
|
const EnrichmentBatchSchemaDefinition = z.object({
|
|
5
6
|
/** Canonical entity UUIDs to enrich, filed in order before any person */
|
|
6
7
|
entityId: z.array(z.uuid()).optional(),
|
|
8
|
+
/** Additional instructions for selected records, one entry per owner. Each entry appends to the shared userPrompt for that owner only. Duplicate or unselected owners and combined prompts longer than the run limit are rejected before any run is filed. Omit for identical instructions on every run. */
|
|
9
|
+
instruction: z.array(EnrichmentInstructionSchema).optional(),
|
|
7
10
|
/** COMPREHENSIVE (the default) researches each whole profile; INDIVIDUAL runs only the tasks named in taskPresetKey */
|
|
8
11
|
mode: EnrichmentModeSchema.optional(),
|
|
9
12
|
/** Model id for each run's lead agent; omit to use aVenture's default model */
|
|
@@ -18,7 +21,7 @@ const EnrichmentBatchSchemaDefinition = z.object({
|
|
|
18
21
|
userPrompt: z.string().max(2000).nullish(),
|
|
19
22
|
});
|
|
20
23
|
/**
|
|
21
|
-
* Existing records to enrich in one call, with
|
|
24
|
+
* Existing records to enrich in one call, with shared run options and optional additional instructions for individual selected records
|
|
22
25
|
*
|
|
23
26
|
* @openapiSchema EnrichmentBatch
|
|
24
27
|
* @endpoint POST /v1/enrichments
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const EnrichmentInstructionSchemaDefinition: z.ZodObject<{
|
|
3
|
+
record: z.ZodObject<{
|
|
4
|
+
entityId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
5
|
+
personId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
userPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type EnrichmentInstructionDefinition = z.infer<typeof EnrichmentInstructionSchemaDefinition>;
|
|
10
|
+
export interface EnrichmentInstructionSchemaInput extends z.input<typeof EnrichmentInstructionSchemaDefinition> {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Instructions appended to the shared userPrompt for exactly one selected record
|
|
14
|
+
*
|
|
15
|
+
* @openapiSchema EnrichmentInstruction
|
|
16
|
+
* @endpoint POST /v1/enrichments
|
|
17
|
+
* @usedBySchema EnrichmentBatchSchema
|
|
18
|
+
* @contractShape enrichment.instruction
|
|
19
|
+
* @contractRole canonical
|
|
20
|
+
*/
|
|
21
|
+
export declare const EnrichmentInstructionSchema: z.ZodType<EnrichmentInstructionDefinition, EnrichmentInstructionSchemaInput>;
|
|
22
|
+
export type EnrichmentInstruction = z.infer<typeof EnrichmentInstructionSchema>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=instruction.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
import { EntityPersonOwnerSchema } from "../entity/person-owner.js";
|
|
4
|
+
const EnrichmentInstructionSchemaDefinition = z.object({
|
|
5
|
+
/** Selected company or person these instructions apply to */
|
|
6
|
+
record: EntityPersonOwnerSchema,
|
|
7
|
+
/** Additional instructions for this record only; shared and additional instructions together, separated by a blank line, must fit the run's userPrompt limit */
|
|
8
|
+
userPrompt: z.string().max(2000).nullish(),
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* Instructions appended to the shared userPrompt for exactly one selected record
|
|
12
|
+
*
|
|
13
|
+
* @openapiSchema EnrichmentInstruction
|
|
14
|
+
* @endpoint POST /v1/enrichments
|
|
15
|
+
* @usedBySchema EnrichmentBatchSchema
|
|
16
|
+
* @contractShape enrichment.instruction
|
|
17
|
+
* @contractRole canonical
|
|
18
|
+
*/
|
|
19
|
+
export const EnrichmentInstructionSchema = EnrichmentInstructionSchemaDefinition;
|
|
20
|
+
//# sourceMappingURL=instruction.js.map
|
|
@@ -7,6 +7,7 @@ import { z } from "zod/v4";
|
|
|
7
7
|
* @usedBySchema AddressLinkSchema
|
|
8
8
|
* @usedBySchema BlogPostSchema
|
|
9
9
|
* @usedBySchema ContactDetailSchema
|
|
10
|
+
* @usedBySchema EnrichmentInstructionSchema
|
|
10
11
|
* @usedBySchema EnrichmentSchema
|
|
11
12
|
* @usedBySchema EntityFundraiseInvestorJoinSchema
|
|
12
13
|
* @usedBySchema EntityTextSchema
|
|
@@ -8,6 +8,7 @@ import { z } from "zod/v4";
|
|
|
8
8
|
* @usedBySchema AddressLinkSchema
|
|
9
9
|
* @usedBySchema BlogPostSchema
|
|
10
10
|
* @usedBySchema ContactDetailSchema
|
|
11
|
+
* @usedBySchema EnrichmentInstructionSchema
|
|
11
12
|
* @usedBySchema EnrichmentSchema
|
|
12
13
|
* @usedBySchema EntityFundraiseInvestorJoinSchema
|
|
13
14
|
* @usedBySchema EntityTextSchema
|
|
@@ -25,6 +25,7 @@ export declare const HTTP_METHOD_NOT_ALLOWED: 405;
|
|
|
25
25
|
export declare const HTTP_CONFLICT: 409;
|
|
26
26
|
export declare const HTTP_GONE: 410;
|
|
27
27
|
export declare const HTTP_UNPROCESSABLE_ENTITY: 422;
|
|
28
|
+
export declare const HTTP_FAILED_DEPENDENCY: 424;
|
|
28
29
|
export declare const HTTP_TOO_MANY_REQUESTS: 429;
|
|
29
30
|
export declare const HTTP_INTERNAL_SERVER_ERROR: 500;
|
|
30
31
|
export declare const HTTP_NOT_IMPLEMENTED: 501;
|
package/dist/http/status-code.js
CHANGED
|
@@ -26,6 +26,7 @@ export const HTTP_METHOD_NOT_ALLOWED = 405;
|
|
|
26
26
|
export const HTTP_CONFLICT = 409;
|
|
27
27
|
export const HTTP_GONE = 410;
|
|
28
28
|
export const HTTP_UNPROCESSABLE_ENTITY = 422;
|
|
29
|
+
export const HTTP_FAILED_DEPENDENCY = 424;
|
|
29
30
|
export const HTTP_TOO_MANY_REQUESTS = 429;
|
|
30
31
|
export const HTTP_INTERNAL_SERVER_ERROR = 500;
|
|
31
32
|
export const HTTP_NOT_IMPLEMENTED = 501;
|
|
@@ -290,6 +290,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
290
290
|
},
|
|
291
291
|
Enrichment: { modulePath: "enrichment/enrichment", schemaName: "EnrichmentSchema" },
|
|
292
292
|
EnrichmentBatch: { modulePath: "enrichment/batch", schemaName: "EnrichmentBatchSchema" },
|
|
293
|
+
EnrichmentInstruction: {
|
|
294
|
+
modulePath: "enrichment/instruction",
|
|
295
|
+
schemaName: "EnrichmentInstructionSchema",
|
|
296
|
+
},
|
|
293
297
|
EnrichmentMode: { modulePath: "enrichment/mode", schemaName: "EnrichmentModeSchema" },
|
|
294
298
|
EnrichmentPrompt: { modulePath: "enrichment/prompt", schemaName: "EnrichmentPromptSchema" },
|
|
295
299
|
EnrichmentRefusalType: {
|
package/dist/problem/type.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export declare const ProblemTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
68
68
|
readonly NON_ENGLISH_ARTICLE: "https://api.aventure.vc/errors/non-english-article";
|
|
69
69
|
readonly INVALID_IMAGE: "https://api.aventure.vc/errors/invalid-image";
|
|
70
70
|
readonly UPSTREAM_EDGE_CHALLENGED: "https://api.aventure.vc/errors/upstream-edge-challenged";
|
|
71
|
+
readonly UPSTREAM_TARGET_THROTTLED: "https://api.aventure.vc/errors/upstream-target-throttled";
|
|
71
72
|
readonly ACCELERATOR_DETAIL_RESTATES_TARGET: "https://api.aventure.vc/errors/accelerator-detail-restates-target";
|
|
72
73
|
}>, z.ZodString]> & {
|
|
73
74
|
enum: {
|
|
@@ -130,6 +131,7 @@ export declare const ProblemTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
130
131
|
readonly NON_ENGLISH_ARTICLE: "https://api.aventure.vc/errors/non-english-article";
|
|
131
132
|
readonly INVALID_IMAGE: "https://api.aventure.vc/errors/invalid-image";
|
|
132
133
|
readonly UPSTREAM_EDGE_CHALLENGED: "https://api.aventure.vc/errors/upstream-edge-challenged";
|
|
134
|
+
readonly UPSTREAM_TARGET_THROTTLED: "https://api.aventure.vc/errors/upstream-target-throttled";
|
|
133
135
|
readonly ACCELERATOR_DETAIL_RESTATES_TARGET: "https://api.aventure.vc/errors/accelerator-detail-restates-target";
|
|
134
136
|
};
|
|
135
137
|
};
|
package/dist/problem/type.js
CHANGED
|
@@ -60,6 +60,7 @@ const ProblemTypeSchemaKnownMembers = z.enum({
|
|
|
60
60
|
NON_ENGLISH_ARTICLE: "https://api.aventure.vc/errors/non-english-article",
|
|
61
61
|
INVALID_IMAGE: "https://api.aventure.vc/errors/invalid-image",
|
|
62
62
|
UPSTREAM_EDGE_CHALLENGED: "https://api.aventure.vc/errors/upstream-edge-challenged",
|
|
63
|
+
UPSTREAM_TARGET_THROTTLED: "https://api.aventure.vc/errors/upstream-target-throttled",
|
|
63
64
|
ACCELERATOR_DETAIL_RESTATES_TARGET: "https://api.aventure.vc/errors/accelerator-detail-restates-target",
|
|
64
65
|
});
|
|
65
66
|
/**
|