@aventurevc/api-schemas 0.8.45 → 0.8.46
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/billing/additional-usage-meter.d.ts +1 -0
- package/dist/billing/additional-usage-type.d.ts +1 -0
- package/dist/billing/additional-usage-type.js +1 -0
- package/dist/billing/additional-usage.d.ts +2 -2
- package/dist/billing/catalog-additional-usage.d.ts +1 -0
- package/dist/billing/catalog-allowance.d.ts +1 -0
- package/dist/billing/catalog-allowance.js +1 -1
- package/dist/billing/catalog-tier.d.ts +2 -2
- package/dist/billing/catalog.d.ts +4 -4
- package/dist/billing/subscription.d.ts +14 -2
- package/dist/http/problem-detail.d.ts +1 -0
- package/dist/http/problem-detail.js +1 -1
- package/dist/research/allowance-usage.d.ts +11 -0
- package/dist/research/allowance-usage.js +2 -0
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ import { z } from "zod/v4";
|
|
|
13
13
|
export declare const BillingAdditionalUsageTypeSchema: z.ZodEnum<{
|
|
14
14
|
AI_CREDIT: "AI_CREDIT";
|
|
15
15
|
COMPANY: "COMPANY";
|
|
16
|
+
ENTITY_BRAND: "ENTITY_BRAND";
|
|
16
17
|
ENTITY_VIEW: "ENTITY_VIEW";
|
|
17
18
|
PERSON: "PERSON";
|
|
18
19
|
PERSON_VIEW: "PERSON_VIEW";
|
|
@@ -11,11 +11,11 @@ declare const BillingAdditionalUsageSchemaDefinition: z.ZodObject<{
|
|
|
11
11
|
meter: z.ZodArray<z.ZodType<{
|
|
12
12
|
amountCents: number;
|
|
13
13
|
quantity: number;
|
|
14
|
-
type: "AI_CREDIT" | "COMPANY" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
14
|
+
type: "AI_CREDIT" | "COMPANY" | "ENTITY_BRAND" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
15
15
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
16
16
|
amountCents: number;
|
|
17
17
|
quantity: number;
|
|
18
|
-
type: "AI_CREDIT" | "COMPANY" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
18
|
+
type: "AI_CREDIT" | "COMPANY" | "ENTITY_BRAND" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
19
19
|
}, unknown>>>;
|
|
20
20
|
resetAt: z.ZodISODateTime;
|
|
21
21
|
spendCapCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -3,6 +3,7 @@ declare const BillingCatalogAllowanceSchemaDefinition: z.ZodObject<{
|
|
|
3
3
|
limit: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4
4
|
type: z.ZodEnum<{
|
|
5
5
|
COMPANY: "COMPANY";
|
|
6
|
+
ENTITY_BRAND: "ENTITY_BRAND";
|
|
6
7
|
ENTITY_VIEW: "ENTITY_VIEW";
|
|
7
8
|
PERSON: "PERSON";
|
|
8
9
|
PERSON_VIEW: "PERSON_VIEW";
|
|
@@ -3,7 +3,7 @@ import { z } from "zod/v4";
|
|
|
3
3
|
const BillingCatalogAllowanceSchemaDefinition = z.object({
|
|
4
4
|
/** Monthly cap; 0 withholds the allowance and absent means uncapped. */
|
|
5
5
|
limit: z.int().nullish(),
|
|
6
|
-
type: z.enum(["COMPANY", "PERSON", "ENTITY_VIEW", "PERSON_VIEW", "WEB_SEARCH"]),
|
|
6
|
+
type: z.enum(["COMPANY", "PERSON", "ENTITY_VIEW", "ENTITY_BRAND", "PERSON_VIEW", "WEB_SEARCH"]),
|
|
7
7
|
});
|
|
8
8
|
/**
|
|
9
9
|
* A tier's monthly cap for one allowance.
|
|
@@ -3,10 +3,10 @@ declare const BillingCatalogTierSchemaDefinition: z.ZodObject<{
|
|
|
3
3
|
aiCreditLimit: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4
4
|
allowance: z.ZodArray<z.ZodType<{
|
|
5
5
|
limit?: number | null | undefined;
|
|
6
|
-
type: "COMPANY" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
6
|
+
type: "COMPANY" | "ENTITY_BRAND" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
7
7
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
8
8
|
limit?: number | null | undefined;
|
|
9
|
-
type: "COMPANY" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
9
|
+
type: "COMPANY" | "ENTITY_BRAND" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
10
10
|
}, unknown>>>;
|
|
11
11
|
displayName: z.ZodString;
|
|
12
12
|
tier: z.ZodEnum<{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const BillingCatalogSchemaDefinition: z.ZodObject<{
|
|
3
3
|
additionalUsage: z.ZodArray<z.ZodType<{
|
|
4
|
-
type: "AI_CREDIT" | "COMPANY" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
4
|
+
type: "AI_CREDIT" | "COMPANY" | "ENTITY_BRAND" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
5
5
|
unitAmount: number;
|
|
6
6
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
7
|
-
type: "AI_CREDIT" | "COMPANY" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
7
|
+
type: "AI_CREDIT" | "COMPANY" | "ENTITY_BRAND" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
8
8
|
unitAmount: number;
|
|
9
9
|
}, unknown>>>;
|
|
10
10
|
creditPack: z.ZodArray<z.ZodType<{
|
|
@@ -36,7 +36,7 @@ declare const BillingCatalogSchemaDefinition: z.ZodObject<{
|
|
|
36
36
|
aiCreditLimit?: number | null | undefined;
|
|
37
37
|
allowance: {
|
|
38
38
|
limit?: number | null | undefined;
|
|
39
|
-
type: "COMPANY" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
39
|
+
type: "COMPANY" | "ENTITY_BRAND" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
40
40
|
}[];
|
|
41
41
|
displayName: string;
|
|
42
42
|
tier: "ESSENTIAL" | "PLUS" | "PRO" | "UNLIMITED";
|
|
@@ -44,7 +44,7 @@ declare const BillingCatalogSchemaDefinition: z.ZodObject<{
|
|
|
44
44
|
aiCreditLimit?: number | null | undefined;
|
|
45
45
|
allowance: {
|
|
46
46
|
limit?: number | null | undefined;
|
|
47
|
-
type: "COMPANY" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
47
|
+
type: "COMPANY" | "ENTITY_BRAND" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
48
48
|
}[];
|
|
49
49
|
displayName: string;
|
|
50
50
|
tier: "ESSENTIAL" | "PLUS" | "PRO" | "UNLIMITED";
|
|
@@ -9,7 +9,7 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
|
9
9
|
meter: {
|
|
10
10
|
amountCents: number;
|
|
11
11
|
quantity: number;
|
|
12
|
-
type: "AI_CREDIT" | "COMPANY" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
12
|
+
type: "AI_CREDIT" | "COMPANY" | "ENTITY_BRAND" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
13
13
|
}[];
|
|
14
14
|
resetAt: string;
|
|
15
15
|
spendCapCents?: number | null | undefined;
|
|
@@ -24,7 +24,7 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
|
24
24
|
meter: {
|
|
25
25
|
amountCents: number;
|
|
26
26
|
quantity: number;
|
|
27
|
-
type: "AI_CREDIT" | "COMPANY" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
27
|
+
type: "AI_CREDIT" | "COMPANY" | "ENTITY_BRAND" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
28
28
|
}[];
|
|
29
29
|
resetAt: string;
|
|
30
30
|
spendCapCents?: number | null | undefined;
|
|
@@ -38,6 +38,12 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
|
38
38
|
resetAt: string;
|
|
39
39
|
used: number;
|
|
40
40
|
};
|
|
41
|
+
entityBrand: {
|
|
42
|
+
limit?: number | null | undefined;
|
|
43
|
+
remaining?: number | null | undefined;
|
|
44
|
+
resetAt: string;
|
|
45
|
+
used: number;
|
|
46
|
+
};
|
|
41
47
|
entityView: {
|
|
42
48
|
limit?: number | null | undefined;
|
|
43
49
|
remaining?: number | null | undefined;
|
|
@@ -93,6 +99,12 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
|
93
99
|
resetAt: string;
|
|
94
100
|
used: number;
|
|
95
101
|
};
|
|
102
|
+
entityBrand: {
|
|
103
|
+
limit?: number | null | undefined;
|
|
104
|
+
remaining?: number | null | undefined;
|
|
105
|
+
resetAt: string;
|
|
106
|
+
used: number;
|
|
107
|
+
};
|
|
96
108
|
entityView: {
|
|
97
109
|
limit?: number | null | undefined;
|
|
98
110
|
remaining?: number | null | undefined;
|
|
@@ -2,6 +2,7 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const ProblemDetailSchemaDefinition: z.ZodObject<{
|
|
3
3
|
allowanceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4
4
|
COMPANY: "COMPANY";
|
|
5
|
+
ENTITY_BRAND: "ENTITY_BRAND";
|
|
5
6
|
ENTITY_VIEW: "ENTITY_VIEW";
|
|
6
7
|
PERSON: "PERSON";
|
|
7
8
|
PERSON_VIEW: "PERSON_VIEW";
|
|
@@ -8,7 +8,7 @@ import { RedirectSlugPathSchema } from "../redirect/redirect-slug-path.js";
|
|
|
8
8
|
const ProblemDetailSchemaDefinition = z.object({
|
|
9
9
|
/** Which monthly allowance a BILLING_ALLOWANCE refusal exhausted. */
|
|
10
10
|
allowanceType: z
|
|
11
|
-
.enum(["COMPANY", "PERSON", "ENTITY_VIEW", "PERSON_VIEW", "WEB_SEARCH"])
|
|
11
|
+
.enum(["COMPANY", "PERSON", "ENTITY_VIEW", "ENTITY_BRAND", "PERSON_VIEW", "WEB_SEARCH"])
|
|
12
12
|
.nullish(),
|
|
13
13
|
circuitBreaker: z.string().nullish(),
|
|
14
14
|
/** Machine-readable secondary code on ProblemDetail.code. Agents should branch on this value when the HTTP status alone does not identify the recovery path. Code groups include auth/session, rate limiting, job infrastructure, RBAC, external providers, image processing, R2 storage, search, and inference. Many codes indicate infra/admin-only conditions where the correct agent action is to surface the error and stop, not retry. */
|
|
@@ -11,6 +11,17 @@ declare const ResearchAllowanceUsageSchemaDefinition: z.ZodObject<{
|
|
|
11
11
|
resetAt: string;
|
|
12
12
|
used: number;
|
|
13
13
|
}, unknown>>;
|
|
14
|
+
entityBrand: z.ZodType<{
|
|
15
|
+
limit?: number | null | undefined;
|
|
16
|
+
remaining?: number | null | undefined;
|
|
17
|
+
resetAt: string;
|
|
18
|
+
used: number;
|
|
19
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
20
|
+
limit?: number | null | undefined;
|
|
21
|
+
remaining?: number | null | undefined;
|
|
22
|
+
resetAt: string;
|
|
23
|
+
used: number;
|
|
24
|
+
}, unknown>>;
|
|
14
25
|
entityView: z.ZodType<{
|
|
15
26
|
limit?: number | null | undefined;
|
|
16
27
|
remaining?: number | null | undefined;
|
|
@@ -4,6 +4,8 @@ import { ResearchAllowanceSchema } from "./allowance.js";
|
|
|
4
4
|
const ResearchAllowanceUsageSchemaDefinition = z.object({
|
|
5
5
|
/** Research runs on company targets, new or existing */
|
|
6
6
|
company: ResearchAllowanceSchema,
|
|
7
|
+
/** Thin company brand reads (names, logos, links, tags) */
|
|
8
|
+
entityBrand: ResearchAllowanceSchema,
|
|
7
9
|
entityView: ResearchAllowanceSchema,
|
|
8
10
|
/** Deprecated: replaced by company, which it mirrors. */
|
|
9
11
|
newCompany: ResearchAllowanceSchema,
|