@aventurevc/api-schemas 0.8.72 → 0.8.74
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/subscription.d.ts +4 -0
- package/dist/billing/subscription.js +2 -0
- package/dist/federated/natural-search.d.ts +3 -1
- package/dist/federated/natural-search.js +5 -1
- package/dist/federated/search-provenance.d.ts +5 -0
- package/dist/federated/search-provenance.js +2 -0
- package/dist/federated/search.d.ts +2 -0
- package/dist/link/search.d.ts +2 -0
- package/package.json +1 -1
|
@@ -173,6 +173,10 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
|
173
173
|
PRO_YEARLY: "PRO_YEARLY";
|
|
174
174
|
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
175
175
|
}>>>;
|
|
176
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
177
|
+
APP_STORE: "APP_STORE";
|
|
178
|
+
STRIPE: "STRIPE";
|
|
179
|
+
}>>>;
|
|
176
180
|
recurringPrice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
177
181
|
cadence: z.ZodString;
|
|
178
182
|
currency: z.ZodString;
|
|
@@ -22,6 +22,8 @@ const BillingSubscriptionSchemaDefinition = z.object({
|
|
|
22
22
|
periodStart: z.iso.datetime({ offset: true }).nullish(),
|
|
23
23
|
/** Paid plan and billing cycle; absent without a paid subscription */
|
|
24
24
|
plan: BillingPlanTypeSchema.nullish(),
|
|
25
|
+
/** Who bills the entitled paid subscription: STRIPE (managed on the web) or APP_STORE; absent without one */
|
|
26
|
+
provider: z.enum(["STRIPE", "APP_STORE"]).nullish(),
|
|
25
27
|
/** Subscribed renewal price before discounts; absent without a known paid Price */
|
|
26
28
|
recurringPrice: BillingRecurringPriceSchema.nullish(),
|
|
27
29
|
status: z.enum([
|
|
@@ -163,11 +163,13 @@ declare const FederatedNaturalSearchSchemaDefinition: z.ZodObject<{
|
|
|
163
163
|
}, z.core.$strict>>;
|
|
164
164
|
mode: z.ZodOptional<z.ZodDefault<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>>;
|
|
165
165
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
|
+
newsSize: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
167
|
+
personSize: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
166
168
|
query: z.ZodString;
|
|
167
169
|
}, z.core.$strip>;
|
|
168
170
|
type FederatedNaturalSearchDefinition = z.infer<typeof FederatedNaturalSearchSchemaDefinition>;
|
|
169
171
|
/**
|
|
170
|
-
* Plain-English search across companies, people, and news, plus optional
|
|
172
|
+
* Plain-English search across companies, people, and news, plus optional per-scope entity constraints and page sizes.
|
|
171
173
|
*
|
|
172
174
|
* @openapiSchema FederatedNaturalSearch
|
|
173
175
|
* @endpoint POST /v1/search
|
|
@@ -9,11 +9,15 @@ const FederatedNaturalSearchSchemaDefinition = z.object({
|
|
|
9
9
|
mode: SearchModeSchema.default("auto").optional(),
|
|
10
10
|
/** Optional chat model for planning; null uses the configured natural-search default. A caller without admin authority may only choose an allowlisted model; admin callers are unrestricted. */
|
|
11
11
|
model: z.string().nullish(),
|
|
12
|
+
/** News scope page size; omitted uses the size query parameter, under the same page-size cap. */
|
|
13
|
+
newsSize: z.int().nullish(),
|
|
14
|
+
/** Person scope page size; omitted uses the size query parameter, under the same page-size cap. */
|
|
15
|
+
personSize: z.int().nullish(),
|
|
12
16
|
/** Plain-English search request. */
|
|
13
17
|
query: z.string().min(1),
|
|
14
18
|
});
|
|
15
19
|
/**
|
|
16
|
-
* Plain-English search across companies, people, and news, plus optional
|
|
20
|
+
* Plain-English search across companies, people, and news, plus optional per-scope entity constraints and page sizes.
|
|
17
21
|
*
|
|
18
22
|
* @openapiSchema FederatedNaturalSearch
|
|
19
23
|
* @endpoint POST /v1/search
|
|
@@ -30,6 +30,11 @@ declare const FederatedSearchProvenanceSchemaDefinition: z.ZodObject<{
|
|
|
30
30
|
field?: string | null | undefined;
|
|
31
31
|
scope: "entity" | "news" | "person";
|
|
32
32
|
}, unknown>>>;
|
|
33
|
+
unavailable: z.ZodArray<z.ZodEnum<{
|
|
34
|
+
entity: "entity";
|
|
35
|
+
news: "news";
|
|
36
|
+
person: "person";
|
|
37
|
+
}>>;
|
|
33
38
|
}, z.core.$strip>;
|
|
34
39
|
type FederatedSearchProvenanceDefinition = z.infer<typeof FederatedSearchProvenanceSchemaDefinition>;
|
|
35
40
|
/**
|
|
@@ -11,6 +11,8 @@ const FederatedSearchProvenanceSchemaDefinition = z.object({
|
|
|
11
11
|
person: SearchModeExecutionSchema,
|
|
12
12
|
/** Scopes that rejected the query as unsearchable and returned an empty page while the other scopes ran; empty when every scope ran. */
|
|
13
13
|
rejection: z.array(FederatedSearchRejectionSchema),
|
|
14
|
+
/** Scopes whose search was temporarily unavailable (an upstream outage, open circuit, full concurrency limit, or expired deadline) and returned an empty page while the other scopes ran; empty when every scope ran. Retrying the same query may succeed, unlike a rejection. */
|
|
15
|
+
unavailable: z.array(z.enum(["entity", "person", "news"])),
|
|
14
16
|
});
|
|
15
17
|
/**
|
|
16
18
|
* Requested and executed search strategy for every federated scope.
|
|
@@ -4478,6 +4478,7 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
|
|
|
4478
4478
|
field?: string | null | undefined;
|
|
4479
4479
|
scope: "entity" | "news" | "person";
|
|
4480
4480
|
}[];
|
|
4481
|
+
unavailable: ("entity" | "news" | "person")[];
|
|
4481
4482
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
4482
4483
|
entity: {
|
|
4483
4484
|
modeRequested: string;
|
|
@@ -4496,6 +4497,7 @@ declare const FederatedSearchSchemaDefinition: z.ZodObject<{
|
|
|
4496
4497
|
field?: string | null | undefined;
|
|
4497
4498
|
scope: "entity" | "news" | "person";
|
|
4498
4499
|
}[];
|
|
4500
|
+
unavailable: ("entity" | "news" | "person")[];
|
|
4499
4501
|
}, unknown>>;
|
|
4500
4502
|
}, z.core.$strip>;
|
|
4501
4503
|
type FederatedSearchDefinition = z.infer<typeof FederatedSearchSchemaDefinition>;
|
package/dist/link/search.d.ts
CHANGED
|
@@ -2252,6 +2252,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
|
|
|
2252
2252
|
field?: string | null | undefined;
|
|
2253
2253
|
scope: "entity" | "news" | "person";
|
|
2254
2254
|
}[];
|
|
2255
|
+
unavailable: ("entity" | "news" | "person")[];
|
|
2255
2256
|
};
|
|
2256
2257
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
2257
2258
|
entity: {
|
|
@@ -4504,6 +4505,7 @@ declare const LinkSearchSchemaDefinition: z.ZodObject<{
|
|
|
4504
4505
|
field?: string | null | undefined;
|
|
4505
4506
|
scope: "entity" | "news" | "person";
|
|
4506
4507
|
}[];
|
|
4508
|
+
unavailable: ("entity" | "news" | "person")[];
|
|
4507
4509
|
};
|
|
4508
4510
|
}, unknown>>;
|
|
4509
4511
|
url: z.ZodString;
|