@aventurevc/api-schemas 0.8.156 → 0.8.159
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-funding-type.d.ts +2 -0
- package/dist/billing/additional-usage-funding-type.js +2 -0
- package/dist/billing/additional-usage-meter.d.ts +1 -0
- package/dist/billing/additional-usage-meter.js +1 -0
- package/dist/billing/additional-usage-mutation.d.ts +25 -0
- package/dist/billing/additional-usage-mutation.js +22 -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 +1 -0
- package/dist/billing/additional-usage.js +2 -1
- package/dist/billing/catalog-plan.d.ts +2 -2
- package/dist/billing/catalog.d.ts +2 -2
- package/dist/billing/checkout-mutation.d.ts +2 -2
- package/dist/billing/checkout.d.ts +2 -2
- package/dist/billing/credit-pack-type.d.ts +3 -0
- package/dist/billing/credit-pack-type.js +3 -0
- package/dist/billing/credit-purchase-confirmation.d.ts +22 -0
- package/dist/billing/credit-purchase-confirmation.js +18 -0
- package/dist/billing/credit-purchase-mutation.d.ts +24 -0
- package/dist/billing/credit-purchase-mutation.js +17 -0
- package/dist/billing/credit-purchase.d.ts +27 -0
- package/dist/billing/credit-purchase.js +19 -0
- package/dist/billing/discount.d.ts +24 -0
- package/dist/billing/discount.js +25 -0
- package/dist/billing/next-charge.d.ts +34 -0
- package/dist/billing/next-charge.js +23 -0
- package/dist/billing/plan-change-mutation.d.ts +2 -2
- package/dist/billing/plan-change.d.ts +2 -2
- package/dist/billing/plan-type.d.ts +2 -2
- package/dist/billing/plan-type.js +3 -6
- package/dist/billing/portal-mutation.d.ts +21 -0
- package/dist/billing/portal-mutation.js +16 -0
- package/dist/billing/subscription.d.ts +4 -4
- package/dist/http/problem-detail.d.ts +3 -0
- package/dist/http/problem-detail.js +6 -0
- package/dist/openapi-component-manifest.js +36 -0
- package/dist/search/answer-box.d.ts +20 -0
- package/dist/search/answer-box.js +25 -0
- package/dist/search/knowledge-graph.d.ts +19 -0
- package/dist/search/knowledge-graph.js +23 -0
- package/dist/search/related-question.d.ts +24 -0
- package/dist/search/related-question.js +24 -0
- package/dist/search/sports-result.d.ts +26 -0
- package/dist/search/sports-result.js +26 -0
- package/dist/search/sports-team.d.ts +22 -0
- package/dist/search/sports-team.js +20 -0
- package/dist/web/search.d.ts +38 -0
- package/dist/web/search.js +14 -0
- package/package.json +1 -1
|
@@ -4,6 +4,8 @@ import { z } from "zod/v4";
|
|
|
4
4
|
*
|
|
5
5
|
* @openapiSchema BillingAdditionalUsageFundingType
|
|
6
6
|
* @endpoint GET /v1/billing/subscription
|
|
7
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
8
|
+
* @usedBySchema BillingAdditionalUsageMutationSchema
|
|
7
9
|
* @usedBySchema BillingAdditionalUsageSchema
|
|
8
10
|
* @contractShape billing.additional-usage-funding-type
|
|
9
11
|
* @contractRole canonical
|
|
@@ -5,6 +5,8 @@ import { z } from "zod/v4";
|
|
|
5
5
|
*
|
|
6
6
|
* @openapiSchema BillingAdditionalUsageFundingType
|
|
7
7
|
* @endpoint GET /v1/billing/subscription
|
|
8
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
9
|
+
* @usedBySchema BillingAdditionalUsageMutationSchema
|
|
8
10
|
* @usedBySchema BillingAdditionalUsageSchema
|
|
9
11
|
* @contractShape billing.additional-usage-funding-type
|
|
10
12
|
* @contractRole canonical
|
|
@@ -20,6 +20,7 @@ export interface BillingAdditionalUsageMeterSchemaInput extends z.input<typeof B
|
|
|
20
20
|
*
|
|
21
21
|
* @openapiSchema BillingAdditionalUsageMeter
|
|
22
22
|
* @endpoint GET /v1/billing/subscription
|
|
23
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
23
24
|
* @usedBySchema BillingAdditionalUsageSchema
|
|
24
25
|
* @contractShape billing.additional-usage-meter
|
|
25
26
|
* @contractRole canonical
|
|
@@ -12,6 +12,7 @@ const BillingAdditionalUsageMeterSchemaDefinition = z.object({
|
|
|
12
12
|
*
|
|
13
13
|
* @openapiSchema BillingAdditionalUsageMeter
|
|
14
14
|
* @endpoint GET /v1/billing/subscription
|
|
15
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
15
16
|
* @usedBySchema BillingAdditionalUsageSchema
|
|
16
17
|
* @contractShape billing.additional-usage-meter
|
|
17
18
|
* @contractRole canonical
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const BillingAdditionalUsageMutationSchemaDefinition: z.ZodObject<{
|
|
3
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4
|
+
funding: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
5
|
+
PREPAID_CREDIT: "PREPAID_CREDIT";
|
|
6
|
+
USAGE_INVOICE: "USAGE_INVOICE";
|
|
7
|
+
}>>>;
|
|
8
|
+
invoiceIncrementCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
|
+
spendCapCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type BillingAdditionalUsageMutationDefinition = z.infer<typeof BillingAdditionalUsageMutationSchemaDefinition>;
|
|
12
|
+
export interface BillingAdditionalUsageMutationSchemaInput extends z.input<typeof BillingAdditionalUsageMutationSchemaDefinition> {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Merge patch of the additional-usage settings. Enabling requires funding; USAGE_INVOICE also requires spendCapCents and invoiceIncrementCents.
|
|
16
|
+
*
|
|
17
|
+
* @openapiSchema BillingAdditionalUsageMutation
|
|
18
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
19
|
+
* @contractShape billing.additional-usage-mutation
|
|
20
|
+
* @contractRole canonical
|
|
21
|
+
*/
|
|
22
|
+
export declare const BillingAdditionalUsageMutationSchema: z.ZodType<BillingAdditionalUsageMutationDefinition, BillingAdditionalUsageMutationSchemaInput>;
|
|
23
|
+
export type BillingAdditionalUsageMutation = z.infer<typeof BillingAdditionalUsageMutationSchema>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=additional-usage-mutation.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { BillingAdditionalUsageFundingTypeSchema } from "./additional-usage-funding-type.js";
|
|
4
|
+
const BillingAdditionalUsageMutationSchemaDefinition = z.object({
|
|
5
|
+
/** Turn recording of usage past the monthly caps on or off. */
|
|
6
|
+
enabled: z.boolean().nullish(),
|
|
7
|
+
funding: BillingAdditionalUsageFundingTypeSchema.nullish(),
|
|
8
|
+
/** Unbilled cents that trigger a USAGE_INVOICE invoice; one of the plan catalog's invoiceIncrementCents. */
|
|
9
|
+
invoiceIncrementCents: z.number().int().nullish(),
|
|
10
|
+
/** Monthly spend cap in cents; required for USAGE_INVOICE. */
|
|
11
|
+
spendCapCents: z.number().int().nullish(),
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* Merge patch of the additional-usage settings. Enabling requires funding; USAGE_INVOICE also requires spendCapCents and invoiceIncrementCents.
|
|
15
|
+
*
|
|
16
|
+
* @openapiSchema BillingAdditionalUsageMutation
|
|
17
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
18
|
+
* @contractShape billing.additional-usage-mutation
|
|
19
|
+
* @contractRole canonical
|
|
20
|
+
*/
|
|
21
|
+
export const BillingAdditionalUsageMutationSchema = BillingAdditionalUsageMutationSchemaDefinition;
|
|
22
|
+
//# sourceMappingURL=additional-usage-mutation.js.map
|
|
@@ -5,6 +5,7 @@ import { z } from "zod/v4";
|
|
|
5
5
|
* @openapiSchema BillingAdditionalUsageType
|
|
6
6
|
* @endpoint GET /v1/billing/plans
|
|
7
7
|
* @endpoint GET /v1/billing/subscription
|
|
8
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
8
9
|
* @usedBySchema BillingAdditionalUsageMeterSchema
|
|
9
10
|
* @usedBySchema BillingCatalogAdditionalUsageSchema
|
|
10
11
|
* @contractShape billing.additional-usage-type
|
|
@@ -6,6 +6,7 @@ import { z } from "zod/v4";
|
|
|
6
6
|
* @openapiSchema BillingAdditionalUsageType
|
|
7
7
|
* @endpoint GET /v1/billing/plans
|
|
8
8
|
* @endpoint GET /v1/billing/subscription
|
|
9
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
9
10
|
* @usedBySchema BillingAdditionalUsageMeterSchema
|
|
10
11
|
* @usedBySchema BillingCatalogAdditionalUsageSchema
|
|
11
12
|
* @contractShape billing.additional-usage-type
|
|
@@ -30,6 +30,7 @@ export interface BillingAdditionalUsageSchemaInput extends z.input<typeof Billin
|
|
|
30
30
|
*
|
|
31
31
|
* @openapiSchema BillingAdditionalUsage
|
|
32
32
|
* @endpoint GET /v1/billing/subscription
|
|
33
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
33
34
|
* @usedBySchema BillingSubscriptionSchema
|
|
34
35
|
* @contractShape billing.additional-usage
|
|
35
36
|
* @contractRole canonical
|
|
@@ -3,7 +3,7 @@ import { z } from "zod/v4";
|
|
|
3
3
|
import { BillingAdditionalUsageFundingTypeSchema } from "./additional-usage-funding-type.js";
|
|
4
4
|
import { BillingAdditionalUsageMeterSchema } from "./additional-usage-meter.js";
|
|
5
5
|
const BillingAdditionalUsageSchemaDefinition = z.object({
|
|
6
|
-
/**
|
|
6
|
+
/** Spendable prepaid credit after pending usage and invoice-line rounding reserves, in cents. */
|
|
7
7
|
availableCreditCents: z.number(),
|
|
8
8
|
/** True while a failed threshold invoice blocks additional usage; paying it in Billing Portal clears the block. */
|
|
9
9
|
blocked: z.boolean(),
|
|
@@ -27,6 +27,7 @@ const BillingAdditionalUsageSchemaDefinition = z.object({
|
|
|
27
27
|
*
|
|
28
28
|
* @openapiSchema BillingAdditionalUsage
|
|
29
29
|
* @endpoint GET /v1/billing/subscription
|
|
30
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
30
31
|
* @usedBySchema BillingSubscriptionSchema
|
|
31
32
|
* @contractShape billing.additional-usage
|
|
32
33
|
* @contractRole canonical
|
|
@@ -5,13 +5,13 @@ declare const BillingCatalogPlanSchemaDefinition: z.ZodObject<{
|
|
|
5
5
|
currency: z.ZodString;
|
|
6
6
|
displayName: z.ZodString;
|
|
7
7
|
introductoryAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
-
plan: z.ZodEnum<{
|
|
8
|
+
plan: z.ZodUnion<readonly [z.ZodEnum<{
|
|
9
9
|
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
10
10
|
PLUS_YEARLY: "PLUS_YEARLY";
|
|
11
11
|
PRO_MONTHLY: "PRO_MONTHLY";
|
|
12
12
|
PRO_YEARLY: "PRO_YEARLY";
|
|
13
13
|
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
14
|
-
}>;
|
|
14
|
+
}>, z.ZodString]>;
|
|
15
15
|
tier: z.ZodEnum<{
|
|
16
16
|
ESSENTIAL: "ESSENTIAL";
|
|
17
17
|
PLUS: "PLUS";
|
|
@@ -21,7 +21,7 @@ declare const BillingCatalogSchemaDefinition: z.ZodObject<{
|
|
|
21
21
|
currency: string;
|
|
22
22
|
displayName: string;
|
|
23
23
|
introductoryAmount?: number | null | undefined;
|
|
24
|
-
plan:
|
|
24
|
+
plan: string;
|
|
25
25
|
tier: "ESSENTIAL" | "PLUS" | "PRO" | "UNLIMITED";
|
|
26
26
|
unitAmount: number;
|
|
27
27
|
}, import("./catalog-plan.ts").BillingCatalogPlanSchemaInput, z.core.$ZodTypeInternals<{
|
|
@@ -30,7 +30,7 @@ declare const BillingCatalogSchemaDefinition: z.ZodObject<{
|
|
|
30
30
|
currency: string;
|
|
31
31
|
displayName: string;
|
|
32
32
|
introductoryAmount?: number | null | undefined;
|
|
33
|
-
plan:
|
|
33
|
+
plan: string;
|
|
34
34
|
tier: "ESSENTIAL" | "PLUS" | "PRO" | "UNLIMITED";
|
|
35
35
|
unitAmount: number;
|
|
36
36
|
}, import("./catalog-plan.ts").BillingCatalogPlanSchemaInput>>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const BillingCheckoutMutationSchemaDefinition: z.ZodObject<{
|
|
3
|
-
plan: z.ZodEnum<{
|
|
3
|
+
plan: z.ZodUnion<readonly [z.ZodEnum<{
|
|
4
4
|
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
5
5
|
PLUS_YEARLY: "PLUS_YEARLY";
|
|
6
6
|
PRO_MONTHLY: "PRO_MONTHLY";
|
|
7
7
|
PRO_YEARLY: "PRO_YEARLY";
|
|
8
8
|
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
9
|
-
}>;
|
|
9
|
+
}>, z.ZodString]>;
|
|
10
10
|
uiMode: z.ZodOptional<z.ZodEnum<{
|
|
11
11
|
ELEMENTS: "ELEMENTS";
|
|
12
12
|
HOSTED_PAGE: "HOSTED_PAGE";
|
|
@@ -2,13 +2,13 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const BillingCheckoutSchemaDefinition: z.ZodObject<{
|
|
3
3
|
clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
4
|
expiresAt: z.ZodISODateTime;
|
|
5
|
-
plan: z.ZodEnum<{
|
|
5
|
+
plan: z.ZodUnion<readonly [z.ZodEnum<{
|
|
6
6
|
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
7
7
|
PLUS_YEARLY: "PLUS_YEARLY";
|
|
8
8
|
PRO_MONTHLY: "PRO_MONTHLY";
|
|
9
9
|
PRO_YEARLY: "PRO_YEARLY";
|
|
10
10
|
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
11
|
-
}>;
|
|
11
|
+
}>, z.ZodString]>;
|
|
12
12
|
publishableKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
}, z.core.$strip>;
|
|
@@ -4,7 +4,10 @@ import { z } from "zod/v4";
|
|
|
4
4
|
*
|
|
5
5
|
* @openapiSchema BillingCreditPackType
|
|
6
6
|
* @endpoint GET /v1/billing/plans
|
|
7
|
+
* @endpoint POST /v1/billing/credit-purchases
|
|
7
8
|
* @usedBySchema BillingCatalogCreditPackSchema
|
|
9
|
+
* @usedBySchema BillingCreditPurchaseMutationSchema
|
|
10
|
+
* @usedBySchema BillingCreditPurchaseSchema
|
|
8
11
|
* @contractShape billing.credit-pack-type
|
|
9
12
|
* @contractRole canonical
|
|
10
13
|
*/
|
|
@@ -5,7 +5,10 @@ import { z } from "zod/v4";
|
|
|
5
5
|
*
|
|
6
6
|
* @openapiSchema BillingCreditPackType
|
|
7
7
|
* @endpoint GET /v1/billing/plans
|
|
8
|
+
* @endpoint POST /v1/billing/credit-purchases
|
|
8
9
|
* @usedBySchema BillingCatalogCreditPackSchema
|
|
10
|
+
* @usedBySchema BillingCreditPurchaseMutationSchema
|
|
11
|
+
* @usedBySchema BillingCreditPurchaseSchema
|
|
9
12
|
* @contractShape billing.credit-pack-type
|
|
10
13
|
* @contractRole canonical
|
|
11
14
|
*/
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const BillingCreditPurchaseConfirmationSchemaDefinition: z.ZodObject<{
|
|
3
|
+
amountCents: z.ZodNumber;
|
|
4
|
+
closedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
5
|
+
grantedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
6
|
+
id: z.ZodUUID;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
type BillingCreditPurchaseConfirmationDefinition = z.infer<typeof BillingCreditPurchaseConfirmationSchemaDefinition>;
|
|
9
|
+
export interface BillingCreditPurchaseConfirmationSchemaInput extends z.input<typeof BillingCreditPurchaseConfirmationSchemaDefinition> {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* One account-owned purchase's confirmed credit grant or checkout closure.
|
|
13
|
+
*
|
|
14
|
+
* @openapiSchema BillingCreditPurchaseConfirmation
|
|
15
|
+
* @endpoint GET /v1/billing/credit-purchases/{purchaseId}
|
|
16
|
+
* @contractShape billing.credit-purchase-confirmation
|
|
17
|
+
* @contractRole canonical
|
|
18
|
+
*/
|
|
19
|
+
export declare const BillingCreditPurchaseConfirmationSchema: z.ZodType<BillingCreditPurchaseConfirmationDefinition, BillingCreditPurchaseConfirmationSchemaInput>;
|
|
20
|
+
export type BillingCreditPurchaseConfirmation = z.infer<typeof BillingCreditPurchaseConfirmationSchema>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=credit-purchase-confirmation.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
const BillingCreditPurchaseConfirmationSchemaDefinition = z.object({
|
|
4
|
+
amountCents: z.number().int(),
|
|
5
|
+
closedAt: z.iso.datetime({ offset: true }).nullish(),
|
|
6
|
+
grantedAt: z.iso.datetime({ offset: true }).nullish(),
|
|
7
|
+
id: z.uuid(),
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* One account-owned purchase's confirmed credit grant or checkout closure.
|
|
11
|
+
*
|
|
12
|
+
* @openapiSchema BillingCreditPurchaseConfirmation
|
|
13
|
+
* @endpoint GET /v1/billing/credit-purchases/{purchaseId}
|
|
14
|
+
* @contractShape billing.credit-purchase-confirmation
|
|
15
|
+
* @contractRole canonical
|
|
16
|
+
*/
|
|
17
|
+
export const BillingCreditPurchaseConfirmationSchema = BillingCreditPurchaseConfirmationSchemaDefinition;
|
|
18
|
+
//# sourceMappingURL=credit-purchase-confirmation.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const BillingCreditPurchaseMutationSchemaDefinition: z.ZodObject<{
|
|
3
|
+
pack: z.ZodEnum<{
|
|
4
|
+
USD_100: "USD_100";
|
|
5
|
+
USD_25: "USD_25";
|
|
6
|
+
USD_250: "USD_250";
|
|
7
|
+
USD_50: "USD_50";
|
|
8
|
+
}>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type BillingCreditPurchaseMutationDefinition = z.infer<typeof BillingCreditPurchaseMutationSchemaDefinition>;
|
|
11
|
+
export interface BillingCreditPurchaseMutationSchemaInput extends z.input<typeof BillingCreditPurchaseMutationSchemaDefinition> {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Prepaid credit pack to buy through hosted Checkout.
|
|
15
|
+
*
|
|
16
|
+
* @openapiSchema BillingCreditPurchaseMutation
|
|
17
|
+
* @endpoint POST /v1/billing/credit-purchases
|
|
18
|
+
* @contractShape billing.credit-purchase-mutation
|
|
19
|
+
* @contractRole canonical
|
|
20
|
+
*/
|
|
21
|
+
export declare const BillingCreditPurchaseMutationSchema: z.ZodType<BillingCreditPurchaseMutationDefinition, BillingCreditPurchaseMutationSchemaInput>;
|
|
22
|
+
export type BillingCreditPurchaseMutation = z.infer<typeof BillingCreditPurchaseMutationSchema>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=credit-purchase-mutation.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { BillingCreditPackTypeSchema } from "./credit-pack-type.js";
|
|
4
|
+
const BillingCreditPurchaseMutationSchemaDefinition = z.object({
|
|
5
|
+
/** Credit pack to buy; its amount becomes prepaid credit. */
|
|
6
|
+
pack: BillingCreditPackTypeSchema,
|
|
7
|
+
});
|
|
8
|
+
/**
|
|
9
|
+
* Prepaid credit pack to buy through hosted Checkout.
|
|
10
|
+
*
|
|
11
|
+
* @openapiSchema BillingCreditPurchaseMutation
|
|
12
|
+
* @endpoint POST /v1/billing/credit-purchases
|
|
13
|
+
* @contractShape billing.credit-purchase-mutation
|
|
14
|
+
* @contractRole canonical
|
|
15
|
+
*/
|
|
16
|
+
export const BillingCreditPurchaseMutationSchema = BillingCreditPurchaseMutationSchemaDefinition;
|
|
17
|
+
//# sourceMappingURL=credit-purchase-mutation.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const BillingCreditPurchaseSchemaDefinition: z.ZodObject<{
|
|
3
|
+
expiresAt: z.ZodISODateTime;
|
|
4
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
5
|
+
pack: z.ZodEnum<{
|
|
6
|
+
USD_100: "USD_100";
|
|
7
|
+
USD_25: "USD_25";
|
|
8
|
+
USD_250: "USD_250";
|
|
9
|
+
USD_50: "USD_50";
|
|
10
|
+
}>;
|
|
11
|
+
url: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
type BillingCreditPurchaseDefinition = z.infer<typeof BillingCreditPurchaseSchemaDefinition>;
|
|
14
|
+
export interface BillingCreditPurchaseSchemaInput extends z.input<typeof BillingCreditPurchaseSchemaDefinition> {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Hosted Checkout destination and expiry for a prepaid credit pack.
|
|
18
|
+
*
|
|
19
|
+
* @openapiSchema BillingCreditPurchase
|
|
20
|
+
* @endpoint POST /v1/billing/credit-purchases
|
|
21
|
+
* @contractShape billing.credit-purchase
|
|
22
|
+
* @contractRole canonical
|
|
23
|
+
*/
|
|
24
|
+
export declare const BillingCreditPurchaseSchema: z.ZodType<BillingCreditPurchaseDefinition, BillingCreditPurchaseSchemaInput>;
|
|
25
|
+
export type BillingCreditPurchase = z.infer<typeof BillingCreditPurchaseSchema>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=credit-purchase.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { BillingCreditPackTypeSchema } from "./credit-pack-type.js";
|
|
4
|
+
const BillingCreditPurchaseSchemaDefinition = z.object({
|
|
5
|
+
expiresAt: z.iso.datetime({ offset: true }),
|
|
6
|
+
id: z.uuid().nullish(),
|
|
7
|
+
pack: BillingCreditPackTypeSchema,
|
|
8
|
+
url: z.string(),
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* Hosted Checkout destination and expiry for a prepaid credit pack.
|
|
12
|
+
*
|
|
13
|
+
* @openapiSchema BillingCreditPurchase
|
|
14
|
+
* @endpoint POST /v1/billing/credit-purchases
|
|
15
|
+
* @contractShape billing.credit-purchase
|
|
16
|
+
* @contractRole canonical
|
|
17
|
+
*/
|
|
18
|
+
export const BillingCreditPurchaseSchema = BillingCreditPurchaseSchemaDefinition;
|
|
19
|
+
//# sourceMappingURL=credit-purchase.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const BillingDiscountSchemaDefinition: z.ZodObject<{
|
|
3
|
+
amountOff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
+
discountedAmount: z.ZodNumber;
|
|
5
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
6
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
percentOff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type BillingDiscountDefinition = z.infer<typeof BillingDiscountSchemaDefinition>;
|
|
10
|
+
export interface BillingDiscountSchemaInput extends z.input<typeof BillingDiscountSchemaDefinition> {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A coupon applied to the next invoice.
|
|
14
|
+
*
|
|
15
|
+
* @openapiSchema BillingDiscount
|
|
16
|
+
* @endpoint GET /v1/billing/subscription/next-charge
|
|
17
|
+
* @usedBySchema BillingNextChargeSchema
|
|
18
|
+
* @contractShape billing.discount
|
|
19
|
+
* @contractRole canonical
|
|
20
|
+
*/
|
|
21
|
+
export declare const BillingDiscountSchema: z.ZodType<BillingDiscountDefinition, BillingDiscountSchemaInput>;
|
|
22
|
+
export type BillingDiscount = z.infer<typeof BillingDiscountSchema>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=discount.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
const BillingDiscountSchemaDefinition = z.object({
|
|
4
|
+
/** Fixed amount taken off in the minor unit; absent for a percentage coupon */
|
|
5
|
+
amountOff: z.number().int().nullish(),
|
|
6
|
+
/** Amount this discount takes off the next invoice, minor unit */
|
|
7
|
+
discountedAmount: z.number().int(),
|
|
8
|
+
/** When the discount stops applying; absent when it never ends */
|
|
9
|
+
endsAt: z.iso.datetime({ offset: true }).nullish(),
|
|
10
|
+
/** Coupon name shown to the customer; absent when it has none */
|
|
11
|
+
name: z.string().nullish(),
|
|
12
|
+
/** Percentage taken off; absent for a fixed-amount coupon */
|
|
13
|
+
percentOff: z.number().nullish(),
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* A coupon applied to the next invoice.
|
|
17
|
+
*
|
|
18
|
+
* @openapiSchema BillingDiscount
|
|
19
|
+
* @endpoint GET /v1/billing/subscription/next-charge
|
|
20
|
+
* @usedBySchema BillingNextChargeSchema
|
|
21
|
+
* @contractShape billing.discount
|
|
22
|
+
* @contractRole canonical
|
|
23
|
+
*/
|
|
24
|
+
export const BillingDiscountSchema = BillingDiscountSchemaDefinition;
|
|
25
|
+
//# sourceMappingURL=discount.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const BillingNextChargeSchemaDefinition: z.ZodObject<{
|
|
3
|
+
amountDue: z.ZodNumber;
|
|
4
|
+
chargeAt: z.ZodISODateTime;
|
|
5
|
+
currency: z.ZodString;
|
|
6
|
+
discount: z.ZodArray<z.ZodType<{
|
|
7
|
+
amountOff?: number | null | undefined;
|
|
8
|
+
discountedAmount: number;
|
|
9
|
+
endsAt?: string | null | undefined;
|
|
10
|
+
name?: string | null | undefined;
|
|
11
|
+
percentOff?: number | null | undefined;
|
|
12
|
+
}, import("./discount.ts").BillingDiscountSchemaInput, z.core.$ZodTypeInternals<{
|
|
13
|
+
amountOff?: number | null | undefined;
|
|
14
|
+
discountedAmount: number;
|
|
15
|
+
endsAt?: string | null | undefined;
|
|
16
|
+
name?: string | null | undefined;
|
|
17
|
+
percentOff?: number | null | undefined;
|
|
18
|
+
}, import("./discount.ts").BillingDiscountSchemaInput>>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
type BillingNextChargeDefinition = z.infer<typeof BillingNextChargeSchemaDefinition>;
|
|
21
|
+
export interface BillingNextChargeSchemaInput extends z.input<typeof BillingNextChargeSchemaDefinition> {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Next invoice of the caller's renewing Stripe subscription as Stripe previews it, after discounts and credits.
|
|
25
|
+
*
|
|
26
|
+
* @openapiSchema BillingNextCharge
|
|
27
|
+
* @endpoint GET /v1/billing/subscription/next-charge
|
|
28
|
+
* @contractShape billing.next-charge
|
|
29
|
+
* @contractRole canonical
|
|
30
|
+
*/
|
|
31
|
+
export declare const BillingNextChargeSchema: z.ZodType<BillingNextChargeDefinition, BillingNextChargeSchemaInput>;
|
|
32
|
+
export type BillingNextCharge = z.infer<typeof BillingNextChargeSchema>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=next-charge.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { BillingDiscountSchema } from "./discount.js";
|
|
4
|
+
const BillingNextChargeSchemaDefinition = z.object({
|
|
5
|
+
/** Amount the next invoice will charge in the currency's minor unit, after discounts, credits, and usage so far; 0 when a discount covers it */
|
|
6
|
+
amountDue: z.number().int(),
|
|
7
|
+
/** When the next invoice is raised and charged */
|
|
8
|
+
chargeAt: z.iso.datetime({ offset: true }),
|
|
9
|
+
/** ISO 4217 currency code. */
|
|
10
|
+
currency: z.string(),
|
|
11
|
+
/** Discounts applied to the next invoice; empty when none apply */
|
|
12
|
+
discount: z.array(BillingDiscountSchema),
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* Next invoice of the caller's renewing Stripe subscription as Stripe previews it, after discounts and credits.
|
|
16
|
+
*
|
|
17
|
+
* @openapiSchema BillingNextCharge
|
|
18
|
+
* @endpoint GET /v1/billing/subscription/next-charge
|
|
19
|
+
* @contractShape billing.next-charge
|
|
20
|
+
* @contractRole canonical
|
|
21
|
+
*/
|
|
22
|
+
export const BillingNextChargeSchema = BillingNextChargeSchemaDefinition;
|
|
23
|
+
//# sourceMappingURL=next-charge.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const BillingPlanChangeMutationSchemaDefinition: z.ZodObject<{
|
|
3
|
-
plan: z.ZodEnum<{
|
|
3
|
+
plan: z.ZodUnion<readonly [z.ZodEnum<{
|
|
4
4
|
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
5
5
|
PLUS_YEARLY: "PLUS_YEARLY";
|
|
6
6
|
PRO_MONTHLY: "PRO_MONTHLY";
|
|
7
7
|
PRO_YEARLY: "PRO_YEARLY";
|
|
8
8
|
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
9
|
-
}>;
|
|
9
|
+
}>, z.ZodString]>;
|
|
10
10
|
prorationDate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
type BillingPlanChangeMutationDefinition = z.infer<typeof BillingPlanChangeMutationSchemaDefinition>;
|
|
@@ -3,13 +3,13 @@ declare const BillingPlanChangeSchemaDefinition: z.ZodObject<{
|
|
|
3
3
|
effectiveAt: z.ZodISODateTime;
|
|
4
4
|
paymentClientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
paymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
-
plan: z.ZodEnum<{
|
|
6
|
+
plan: z.ZodUnion<readonly [z.ZodEnum<{
|
|
7
7
|
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
8
8
|
PLUS_YEARLY: "PLUS_YEARLY";
|
|
9
9
|
PRO_MONTHLY: "PRO_MONTHLY";
|
|
10
10
|
PRO_YEARLY: "PRO_YEARLY";
|
|
11
11
|
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
12
|
-
}>;
|
|
12
|
+
}>, z.ZodString]>;
|
|
13
13
|
publishableKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
type BillingPlanChangeDefinition = z.infer<typeof BillingPlanChangeSchemaDefinition>;
|
|
@@ -17,12 +17,12 @@ import { z } from "zod/v4";
|
|
|
17
17
|
* @contractShape billing.plan-type
|
|
18
18
|
* @contractRole canonical
|
|
19
19
|
*/
|
|
20
|
-
export declare const BillingPlanTypeSchema: z.ZodEnum<{
|
|
20
|
+
export declare const BillingPlanTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
21
21
|
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
22
22
|
PLUS_YEARLY: "PLUS_YEARLY";
|
|
23
23
|
PRO_MONTHLY: "PRO_MONTHLY";
|
|
24
24
|
PRO_YEARLY: "PRO_YEARLY";
|
|
25
25
|
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
26
|
-
}>;
|
|
26
|
+
}>, z.ZodString]>;
|
|
27
27
|
export type BillingPlanType = z.infer<typeof BillingPlanTypeSchema>;
|
|
28
28
|
//# sourceMappingURL=plan-type.d.ts.map
|
|
@@ -18,11 +18,8 @@ import { z } from "zod/v4";
|
|
|
18
18
|
* @contractShape billing.plan-type
|
|
19
19
|
* @contractRole canonical
|
|
20
20
|
*/
|
|
21
|
-
export const BillingPlanTypeSchema = z.
|
|
22
|
-
"PLUS_MONTHLY",
|
|
23
|
-
|
|
24
|
-
"PRO_MONTHLY",
|
|
25
|
-
"PRO_YEARLY",
|
|
26
|
-
"PRO_YEARLY_PROMOTION",
|
|
21
|
+
export const BillingPlanTypeSchema = z.union([
|
|
22
|
+
z.enum(["PLUS_MONTHLY", "PLUS_YEARLY", "PRO_MONTHLY", "PRO_YEARLY", "PRO_YEARLY_PROMOTION"]),
|
|
23
|
+
z.string(),
|
|
27
24
|
]);
|
|
28
25
|
//# sourceMappingURL=plan-type.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const BillingPortalMutationSchemaDefinition: z.ZodObject<{
|
|
3
|
+
flow: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4
|
+
PAYMENT_METHOD_UPDATE: "PAYMENT_METHOD_UPDATE";
|
|
5
|
+
}>>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
type BillingPortalMutationDefinition = z.infer<typeof BillingPortalMutationSchemaDefinition>;
|
|
8
|
+
export interface BillingPortalMutationSchemaInput extends z.input<typeof BillingPortalMutationSchemaDefinition> {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Where the hosted Billing Portal session opens.
|
|
12
|
+
*
|
|
13
|
+
* @openapiSchema BillingPortalMutation
|
|
14
|
+
* @endpoint POST /v1/billing/portal-sessions
|
|
15
|
+
* @contractShape billing.portal-mutation
|
|
16
|
+
* @contractRole canonical
|
|
17
|
+
*/
|
|
18
|
+
export declare const BillingPortalMutationSchema: z.ZodType<BillingPortalMutationDefinition, BillingPortalMutationSchemaInput>;
|
|
19
|
+
export type BillingPortalMutation = z.infer<typeof BillingPortalMutationSchema>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=portal-mutation.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
const BillingPortalMutationSchemaDefinition = z.object({
|
|
4
|
+
/** PAYMENT_METHOD_UPDATE opens straight to adding or replacing the card and returns to subscription settings when done. Omit to open the portal home. Plan changes use POST /v1/billing/plan-changes and cancellation uses PATCH /v1/billing/subscription. */
|
|
5
|
+
flow: z.enum(["PAYMENT_METHOD_UPDATE"]).nullish(),
|
|
6
|
+
});
|
|
7
|
+
/**
|
|
8
|
+
* Where the hosted Billing Portal session opens.
|
|
9
|
+
*
|
|
10
|
+
* @openapiSchema BillingPortalMutation
|
|
11
|
+
* @endpoint POST /v1/billing/portal-sessions
|
|
12
|
+
* @contractShape billing.portal-mutation
|
|
13
|
+
* @contractRole canonical
|
|
14
|
+
*/
|
|
15
|
+
export const BillingPortalMutationSchema = BillingPortalMutationSchemaDefinition;
|
|
16
|
+
//# sourceMappingURL=portal-mutation.js.map
|
|
@@ -157,23 +157,23 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
|
157
157
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
158
158
|
entitled: z.ZodBoolean;
|
|
159
159
|
originalStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
160
|
-
pendingPlan: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
160
|
+
pendingPlan: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
161
161
|
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
162
162
|
PLUS_YEARLY: "PLUS_YEARLY";
|
|
163
163
|
PRO_MONTHLY: "PRO_MONTHLY";
|
|
164
164
|
PRO_YEARLY: "PRO_YEARLY";
|
|
165
165
|
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
166
|
-
}>>>;
|
|
166
|
+
}>, z.ZodString]>>>;
|
|
167
167
|
pendingPlanAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
168
168
|
periodEnd: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
169
169
|
periodStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
170
|
-
plan: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
170
|
+
plan: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
171
171
|
PLUS_MONTHLY: "PLUS_MONTHLY";
|
|
172
172
|
PLUS_YEARLY: "PLUS_YEARLY";
|
|
173
173
|
PRO_MONTHLY: "PRO_MONTHLY";
|
|
174
174
|
PRO_YEARLY: "PRO_YEARLY";
|
|
175
175
|
PRO_YEARLY_PROMOTION: "PRO_YEARLY_PROMOTION";
|
|
176
|
-
}>>>;
|
|
176
|
+
}>, z.ZodString]>>>;
|
|
177
177
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
178
178
|
APP_STORE: "APP_STORE";
|
|
179
179
|
STRIPE: "STRIPE";
|
|
@@ -21,6 +21,7 @@ declare const ProblemDetailSchemaDefinition: z.ZodObject<{
|
|
|
21
21
|
account_exists: "account_exists";
|
|
22
22
|
billing_additional_usage_cap_reached: "billing_additional_usage_cap_reached";
|
|
23
23
|
billing_allowance_exhausted: "billing_allowance_exhausted";
|
|
24
|
+
billing_credit_checkout_closed: "billing_credit_checkout_closed";
|
|
24
25
|
callback_challenge_failed: "callback_challenge_failed";
|
|
25
26
|
callback_connection_refused: "callback_connection_refused";
|
|
26
27
|
callback_http_4xx: "callback_http_4xx";
|
|
@@ -69,12 +70,14 @@ declare const ProblemDetailSchemaDefinition: z.ZodObject<{
|
|
|
69
70
|
sentry_api_error: "sentry_api_error";
|
|
70
71
|
source_document_body_unavailable: "source_document_body_unavailable";
|
|
71
72
|
source_document_capture_limit_exceeded: "source_document_capture_limit_exceeded";
|
|
73
|
+
source_document_fetch_busy: "source_document_fetch_busy";
|
|
72
74
|
subscription_canceled: "subscription_canceled";
|
|
73
75
|
subscription_past_due: "subscription_past_due";
|
|
74
76
|
subscription_paused: "subscription_paused";
|
|
75
77
|
subscription_required: "subscription_required";
|
|
76
78
|
suspectedShellStrip: "suspectedShellStrip";
|
|
77
79
|
suspected_shell_strip: "suspected_shell_strip";
|
|
80
|
+
task_plan_operation_unserved: "task_plan_operation_unserved";
|
|
78
81
|
url_surface_misclassification: "url_surface_misclassification";
|
|
79
82
|
web_crawl_fetch_failed: "web_crawl_fetch_failed";
|
|
80
83
|
}>, z.ZodString]>>>;
|
|
@@ -34,6 +34,8 @@ const ProblemDetailSchemaDefinition = z.object({
|
|
|
34
34
|
"billing_allowance_exhausted",
|
|
35
35
|
/** The caller's monthly allowance is spent and the next additional-usage unit would pass the monthly spend cap or the prepaid credit left. Agent action: stop and report ProblemDetail.allowanceType, limit, used, remaining, and resetAt; raise the cap or buy credit through /v1/billing/additional-usage, or wait for resetAt. */
|
|
36
36
|
"billing_additional_usage_cap_reached",
|
|
37
|
+
/** The prepaid credit Checkout is paid, expired, or closed. Retire this purchase intent before explicitly starting another Checkout; ambiguous transport failures and in-progress conflicts must keep the original key. */
|
|
38
|
+
"billing_credit_checkout_closed",
|
|
37
39
|
/** A signed-out purchase named an email that already belongs to an account. Agent action: sign that account in with its email code, then subscribe signed in; never retry the signed-out purchase for that email. */
|
|
38
40
|
"account_exists",
|
|
39
41
|
/** Detail-origin cold-miss coalescing is saturated. Agent action: treat as backend capacity impairment, back off, and inspect backend pool/bulkhead metrics; this is not a caller throttle. */
|
|
@@ -52,6 +54,8 @@ const ProblemDetailSchemaDefinition = z.object({
|
|
|
52
54
|
"JOBRUNR_DISABLED",
|
|
53
55
|
/** JobRunr background worker is disabled in this environment. Agent action: stop (this is an admin/ops configuration condition, not a retriable user error). */
|
|
54
56
|
"jobrunr_disabled",
|
|
57
|
+
/** A catalog task step runs an operation this API instance does not serve, so its plan cannot be projected: rollout skew, or an instance whose configuration disables that operation. Agent action: retry after the rollout; on a deployed instance that persists, report it as rollout skew. */
|
|
58
|
+
"task_plan_operation_unserved",
|
|
55
59
|
/** JobRunr backing storage (Postgres) is unavailable. Agent action: stop; retrying will not help until DB connectivity is restored. */
|
|
56
60
|
"JOBRUNR_STORAGE_UNAVAILABLE",
|
|
57
61
|
/** JobRunr backing storage (Postgres) is unavailable. Agent action: stop; retrying will not help until DB connectivity is restored. */
|
|
@@ -86,6 +90,8 @@ const ProblemDetailSchemaDefinition = z.object({
|
|
|
86
90
|
"image_photographic",
|
|
87
91
|
/** An outbound fetch from an external target site (robots.txt, sitemap, page, or logo or thumbnail image) failed after retries or with the breaker open. Agent action: the failure belongs to the target; crawl jobs may fall back to rendered extraction; do not retry immediately. */
|
|
88
92
|
"web_crawl_fetch_failed",
|
|
93
|
+
/** A request that must not wait found another request already fetching its source document. Agent action: retry after retryAfterSeconds (also in the Retry-After header); the existing fetch keeps running and this request did not start another. */
|
|
94
|
+
"source_document_fetch_busy",
|
|
89
95
|
/** A crawl-run request named an entity or person that has no current primary website URL. Agent action: add or activate the owner's website URL, then resubmit; retrying the unchanged request cannot succeed. */
|
|
90
96
|
"primary_website_missing",
|
|
91
97
|
/** RSS news-ingest feed fetch failed after retries or with the breaker open. Agent action: inspect the configured feed URL and upstream status; do not retry the enqueue immediately. */
|
|
@@ -53,6 +53,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
53
53
|
modulePath: "billing/additional-usage-meter",
|
|
54
54
|
schemaName: "BillingAdditionalUsageMeterSchema",
|
|
55
55
|
},
|
|
56
|
+
BillingAdditionalUsageMutation: {
|
|
57
|
+
modulePath: "billing/additional-usage-mutation",
|
|
58
|
+
schemaName: "BillingAdditionalUsageMutationSchema",
|
|
59
|
+
},
|
|
56
60
|
BillingAdditionalUsageType: {
|
|
57
61
|
modulePath: "billing/additional-usage-type",
|
|
58
62
|
schemaName: "BillingAdditionalUsageTypeSchema",
|
|
@@ -91,6 +95,20 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
91
95
|
modulePath: "billing/credit-pack-type",
|
|
92
96
|
schemaName: "BillingCreditPackTypeSchema",
|
|
93
97
|
},
|
|
98
|
+
BillingCreditPurchase: {
|
|
99
|
+
modulePath: "billing/credit-purchase",
|
|
100
|
+
schemaName: "BillingCreditPurchaseSchema",
|
|
101
|
+
},
|
|
102
|
+
BillingCreditPurchaseConfirmation: {
|
|
103
|
+
modulePath: "billing/credit-purchase-confirmation",
|
|
104
|
+
schemaName: "BillingCreditPurchaseConfirmationSchema",
|
|
105
|
+
},
|
|
106
|
+
BillingCreditPurchaseMutation: {
|
|
107
|
+
modulePath: "billing/credit-purchase-mutation",
|
|
108
|
+
schemaName: "BillingCreditPurchaseMutationSchema",
|
|
109
|
+
},
|
|
110
|
+
BillingDiscount: { modulePath: "billing/discount", schemaName: "BillingDiscountSchema" },
|
|
111
|
+
BillingNextCharge: { modulePath: "billing/next-charge", schemaName: "BillingNextChargeSchema" },
|
|
94
112
|
BillingPaymentMethod: {
|
|
95
113
|
modulePath: "billing/payment-method",
|
|
96
114
|
schemaName: "BillingPaymentMethodSchema",
|
|
@@ -106,6 +124,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
106
124
|
},
|
|
107
125
|
BillingPlanType: { modulePath: "billing/plan-type", schemaName: "BillingPlanTypeSchema" },
|
|
108
126
|
BillingPortal: { modulePath: "billing/portal", schemaName: "BillingPortalSchema" },
|
|
127
|
+
BillingPortalMutation: {
|
|
128
|
+
modulePath: "billing/portal-mutation",
|
|
129
|
+
schemaName: "BillingPortalMutationSchema",
|
|
130
|
+
},
|
|
109
131
|
BillingRecurringPrice: {
|
|
110
132
|
modulePath: "billing/recurring-price",
|
|
111
133
|
schemaName: "BillingRecurringPriceSchema",
|
|
@@ -853,6 +875,7 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
853
875
|
schemaName: "SearchAiOverviewReferenceSchema",
|
|
854
876
|
},
|
|
855
877
|
SearchAnswer: { modulePath: "search/answer", schemaName: "SearchAnswerSchema" },
|
|
878
|
+
SearchAnswerBox: { modulePath: "search/answer-box", schemaName: "SearchAnswerBoxSchema" },
|
|
856
879
|
SearchAnswerCitation: {
|
|
857
880
|
modulePath: "search/answer-citation",
|
|
858
881
|
schemaName: "SearchAnswerCitationSchema",
|
|
@@ -878,6 +901,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
878
901
|
},
|
|
879
902
|
SearchInvestment: { modulePath: "search/investment", schemaName: "SearchInvestmentSchema" },
|
|
880
903
|
SearchJudgment: { modulePath: "search/judgment", schemaName: "SearchJudgmentSchema" },
|
|
904
|
+
SearchKnowledgeGraph: {
|
|
905
|
+
modulePath: "search/knowledge-graph",
|
|
906
|
+
schemaName: "SearchKnowledgeGraphSchema",
|
|
907
|
+
},
|
|
881
908
|
SearchLayer: { modulePath: "search/layer", schemaName: "SearchLayerSchema" },
|
|
882
909
|
SearchMode: { modulePath: "search/mode", schemaName: "SearchModeSchema" },
|
|
883
910
|
SearchModeExecution: {
|
|
@@ -898,7 +925,16 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
898
925
|
modulePath: "search/qualifier-option",
|
|
899
926
|
schemaName: "SearchQualifierOptionSchema",
|
|
900
927
|
},
|
|
928
|
+
SearchRelatedQuestion: {
|
|
929
|
+
modulePath: "search/related-question",
|
|
930
|
+
schemaName: "SearchRelatedQuestionSchema",
|
|
931
|
+
},
|
|
901
932
|
SearchRelevance: { modulePath: "search/relevance", schemaName: "SearchRelevanceSchema" },
|
|
933
|
+
SearchSportsResult: {
|
|
934
|
+
modulePath: "search/sports-result",
|
|
935
|
+
schemaName: "SearchSportsResultSchema",
|
|
936
|
+
},
|
|
937
|
+
SearchSportsTeam: { modulePath: "search/sports-team", schemaName: "SearchSportsTeamSchema" },
|
|
902
938
|
SecCompany: { modulePath: "sec/company", schemaName: "SecCompanySchema" },
|
|
903
939
|
SecListingProspectus: {
|
|
904
940
|
modulePath: "sec/listing-prospectus",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Google's direct answer shown above the results
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema SearchAnswerBox
|
|
6
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
7
|
+
* @endpoint POST /v1/web/search
|
|
8
|
+
* @usedBySchema WebSearchSchema
|
|
9
|
+
* @contractShape search.answer-box
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const SearchAnswerBoxSchema: z.ZodObject<{
|
|
13
|
+
answer: z.ZodString;
|
|
14
|
+
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type SearchAnswerBox = z.infer<typeof SearchAnswerBoxSchema>;
|
|
20
|
+
//# sourceMappingURL=answer-box.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
/**
|
|
4
|
+
* Google's direct answer shown above the results
|
|
5
|
+
*
|
|
6
|
+
* @openapiSchema SearchAnswerBox
|
|
7
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
8
|
+
* @endpoint POST /v1/web/search
|
|
9
|
+
* @usedBySchema WebSearchSchema
|
|
10
|
+
* @contractShape search.answer-box
|
|
11
|
+
* @contractRole canonical
|
|
12
|
+
*/
|
|
13
|
+
export const SearchAnswerBoxSchema = z.object({
|
|
14
|
+
/** Direct answer text; Google's snippet when the box states no separate answer */
|
|
15
|
+
answer: z.string(),
|
|
16
|
+
/** Supporting snippet the box shows */
|
|
17
|
+
snippet: z.string().nullish(),
|
|
18
|
+
/** Title of the page the answer comes from */
|
|
19
|
+
title: z.string().nullish(),
|
|
20
|
+
/** Google's answer-box kind */
|
|
21
|
+
type: z.string().nullish(),
|
|
22
|
+
/** URL of the page the answer comes from */
|
|
23
|
+
url: z.string().nullish(),
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=answer-box.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Google's knowledge panel for the entity the query names
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema SearchKnowledgeGraph
|
|
6
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
7
|
+
* @endpoint POST /v1/web/search
|
|
8
|
+
* @usedBySchema WebSearchSchema
|
|
9
|
+
* @contractShape search.knowledge-graph
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const SearchKnowledgeGraphSchema: z.ZodObject<{
|
|
13
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type SearchKnowledgeGraph = z.infer<typeof SearchKnowledgeGraphSchema>;
|
|
19
|
+
//# sourceMappingURL=knowledge-graph.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/**
|
|
4
|
+
* Google's knowledge panel for the entity the query names
|
|
5
|
+
*
|
|
6
|
+
* @openapiSchema SearchKnowledgeGraph
|
|
7
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
8
|
+
* @endpoint POST /v1/web/search
|
|
9
|
+
* @usedBySchema WebSearchSchema
|
|
10
|
+
* @contractShape search.knowledge-graph
|
|
11
|
+
* @contractRole canonical
|
|
12
|
+
*/
|
|
13
|
+
export const SearchKnowledgeGraphSchema = z.object({
|
|
14
|
+
/** Entity description the panel shows */
|
|
15
|
+
description: z.string().nullish(),
|
|
16
|
+
/** Entity name the panel shows */
|
|
17
|
+
title: z.string().nullish(),
|
|
18
|
+
/** Entity kind Google states */
|
|
19
|
+
type: z.string().nullish(),
|
|
20
|
+
/** Official website the panel links */
|
|
21
|
+
website: z.string().nullish(),
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=knowledge-graph.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const SearchRelatedQuestionSchemaDefinition: z.ZodObject<{
|
|
3
|
+
question: z.ZodString;
|
|
4
|
+
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
type SearchRelatedQuestionDefinition = z.infer<typeof SearchRelatedQuestionSchemaDefinition>;
|
|
9
|
+
export interface SearchRelatedQuestionSchemaInput extends z.input<typeof SearchRelatedQuestionSchemaDefinition> {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* One "People also ask" question Google shows for the query
|
|
13
|
+
*
|
|
14
|
+
* @openapiSchema SearchRelatedQuestion
|
|
15
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
16
|
+
* @endpoint POST /v1/web/search
|
|
17
|
+
* @usedBySchema WebSearchSchema
|
|
18
|
+
* @contractShape search.related-question
|
|
19
|
+
* @contractRole canonical
|
|
20
|
+
*/
|
|
21
|
+
export declare const SearchRelatedQuestionSchema: z.ZodType<SearchRelatedQuestionDefinition, SearchRelatedQuestionSchemaInput>;
|
|
22
|
+
export type SearchRelatedQuestion = z.infer<typeof SearchRelatedQuestionSchema>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=related-question.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
const SearchRelatedQuestionSchemaDefinition = z.object({
|
|
4
|
+
/** Question text */
|
|
5
|
+
question: z.string(),
|
|
6
|
+
/** Answer snippet; null when Google answers the question with an AI Overview */
|
|
7
|
+
snippet: z.string().nullish(),
|
|
8
|
+
/** Title of the page the snippet comes from */
|
|
9
|
+
title: z.string().nullish(),
|
|
10
|
+
/** URL of the page the snippet comes from */
|
|
11
|
+
url: z.string().nullish(),
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* One "People also ask" question Google shows for the query
|
|
15
|
+
*
|
|
16
|
+
* @openapiSchema SearchRelatedQuestion
|
|
17
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
18
|
+
* @endpoint POST /v1/web/search
|
|
19
|
+
* @usedBySchema WebSearchSchema
|
|
20
|
+
* @contractShape search.related-question
|
|
21
|
+
* @contractRole canonical
|
|
22
|
+
*/
|
|
23
|
+
export const SearchRelatedQuestionSchema = SearchRelatedQuestionSchemaDefinition;
|
|
24
|
+
//# sourceMappingURL=related-question.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Google's spotlight for one game the query names
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema SearchSportsResult
|
|
6
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
7
|
+
* @endpoint POST /v1/web/search
|
|
8
|
+
* @usedBySchema WebSearchSchema
|
|
9
|
+
* @contractShape search.sports-result
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const SearchSportsResultSchema: z.ZodObject<{
|
|
13
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
league: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
team: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
|
|
17
|
+
name: string;
|
|
18
|
+
seeding?: number | null | undefined;
|
|
19
|
+
}, import("./sports-team.ts").SearchSportsTeamSchemaInput, z.core.$ZodTypeInternals<{
|
|
20
|
+
name: string;
|
|
21
|
+
seeding?: number | null | undefined;
|
|
22
|
+
}, import("./sports-team.ts").SearchSportsTeamSchemaInput>>>>>;
|
|
23
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type SearchSportsResult = z.infer<typeof SearchSportsResultSchema>;
|
|
26
|
+
//# sourceMappingURL=sports-result.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { SearchSportsTeamSchema } from "./sports-team.js";
|
|
4
|
+
/**
|
|
5
|
+
* Google's spotlight for one game the query names
|
|
6
|
+
*
|
|
7
|
+
* @openapiSchema SearchSportsResult
|
|
8
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
9
|
+
* @endpoint POST /v1/web/search
|
|
10
|
+
* @usedBySchema WebSearchSchema
|
|
11
|
+
* @contractShape search.sports-result
|
|
12
|
+
* @contractRole canonical
|
|
13
|
+
*/
|
|
14
|
+
export const SearchSportsResultSchema = z.object({
|
|
15
|
+
/** Game date as Google states it */
|
|
16
|
+
date: z.string().nullish(),
|
|
17
|
+
/** League or tournament */
|
|
18
|
+
league: z.string().nullish(),
|
|
19
|
+
/** Stage of the competition */
|
|
20
|
+
stage: z.string().nullish(),
|
|
21
|
+
/** Teams in the game */
|
|
22
|
+
team: z.array(SearchSportsTeamSchema).nullish(),
|
|
23
|
+
/** Venue or stadium */
|
|
24
|
+
venue: z.string().nullish(),
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=sports-result.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const SearchSportsTeamSchemaDefinition: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
seeding: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type SearchSportsTeamDefinition = z.infer<typeof SearchSportsTeamSchemaDefinition>;
|
|
7
|
+
export interface SearchSportsTeamSchemaInput extends z.input<typeof SearchSportsTeamSchemaDefinition> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* One team in a spotlighted game
|
|
11
|
+
*
|
|
12
|
+
* @openapiSchema SearchSportsTeam
|
|
13
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
14
|
+
* @endpoint POST /v1/web/search
|
|
15
|
+
* @usedBySchema SearchSportsResultSchema
|
|
16
|
+
* @contractShape search.sports-team
|
|
17
|
+
* @contractRole canonical
|
|
18
|
+
*/
|
|
19
|
+
export declare const SearchSportsTeamSchema: z.ZodType<SearchSportsTeamDefinition, SearchSportsTeamSchemaInput>;
|
|
20
|
+
export type SearchSportsTeam = z.infer<typeof SearchSportsTeamSchema>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=sports-team.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
|
+
const SearchSportsTeamSchemaDefinition = z.object({
|
|
4
|
+
/** Team name */
|
|
5
|
+
name: z.string(),
|
|
6
|
+
/** Tournament seeding when Google states one */
|
|
7
|
+
seeding: z.int().nullish(),
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* One team in a spotlighted game
|
|
11
|
+
*
|
|
12
|
+
* @openapiSchema SearchSportsTeam
|
|
13
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
14
|
+
* @endpoint POST /v1/web/search
|
|
15
|
+
* @usedBySchema SearchSportsResultSchema
|
|
16
|
+
* @contractShape search.sports-team
|
|
17
|
+
* @contractRole canonical
|
|
18
|
+
*/
|
|
19
|
+
export const SearchSportsTeamSchema = SearchSportsTeamSchemaDefinition;
|
|
20
|
+
//# sourceMappingURL=sports-team.js.map
|
package/dist/web/search.d.ts
CHANGED
|
@@ -16,6 +16,13 @@ declare const WebSearchSchemaDefinition: z.ZodObject<{
|
|
|
16
16
|
}, import("../search/ai-overview-reference.ts").SearchAiOverviewReferenceSchemaInput>>>;
|
|
17
17
|
text: z.ZodString;
|
|
18
18
|
}, z.core.$strip>>>;
|
|
19
|
+
answerBox: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
|
+
answer: z.ZodString;
|
|
21
|
+
snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
19
26
|
document: z.ZodType<{
|
|
20
27
|
cacheHitCount: number;
|
|
21
28
|
createdAt: string;
|
|
@@ -47,6 +54,24 @@ declare const WebSearchSchemaDefinition: z.ZodObject<{
|
|
|
47
54
|
sourceKey: string;
|
|
48
55
|
upstreamContentEncoding?: string | null | undefined;
|
|
49
56
|
}, import("../source/document-list.ts").SourceDocumentListSchemaInput>>;
|
|
57
|
+
knowledgeGraph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
58
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
}, z.core.$strip>>>;
|
|
63
|
+
relatedQuestion: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
|
|
64
|
+
question: string;
|
|
65
|
+
snippet?: string | null | undefined;
|
|
66
|
+
title?: string | null | undefined;
|
|
67
|
+
url?: string | null | undefined;
|
|
68
|
+
}, import("../search/related-question.ts").SearchRelatedQuestionSchemaInput, z.core.$ZodTypeInternals<{
|
|
69
|
+
question: string;
|
|
70
|
+
snippet?: string | null | undefined;
|
|
71
|
+
title?: string | null | undefined;
|
|
72
|
+
url?: string | null | undefined;
|
|
73
|
+
}, import("../search/related-question.ts").SearchRelatedQuestionSchemaInput>>>>>;
|
|
74
|
+
relatedSearch: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
50
75
|
result: z.ZodArray<z.ZodType<{
|
|
51
76
|
relevanceScore: number;
|
|
52
77
|
snippet: string;
|
|
@@ -97,6 +122,19 @@ declare const WebSearchSchemaDefinition: z.ZodObject<{
|
|
|
97
122
|
tenant?: "development" | "production" | "staging" | "unassigned" | null | undefined;
|
|
98
123
|
tenantPolicyRevision?: number | null | undefined;
|
|
99
124
|
}, import("../search/search.ts").SearchSchemaInput>>;
|
|
125
|
+
sportsResult: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
126
|
+
date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
+
league: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
team: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
|
|
130
|
+
name: string;
|
|
131
|
+
seeding?: number | null | undefined;
|
|
132
|
+
}, import("../search/sports-team.ts").SearchSportsTeamSchemaInput, z.core.$ZodTypeInternals<{
|
|
133
|
+
name: string;
|
|
134
|
+
seeding?: number | null | undefined;
|
|
135
|
+
}, import("../search/sports-team.ts").SearchSportsTeamSchemaInput>>>>>;
|
|
136
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
}, z.core.$strip>>>;
|
|
100
138
|
}, z.core.$strip>;
|
|
101
139
|
type WebSearchDefinition = z.infer<typeof WebSearchSchemaDefinition>;
|
|
102
140
|
export interface WebSearchSchemaInput extends z.input<typeof WebSearchSchemaDefinition> {
|
package/dist/web/search.js
CHANGED
|
@@ -1,18 +1,32 @@
|
|
|
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
3
|
import { SearchAiOverviewSchema } from "../search/ai-overview.js";
|
|
4
|
+
import { SearchAnswerBoxSchema } from "../search/answer-box.js";
|
|
4
5
|
import { SearchHitSchema } from "../search/hit.js";
|
|
6
|
+
import { SearchKnowledgeGraphSchema } from "../search/knowledge-graph.js";
|
|
7
|
+
import { SearchRelatedQuestionSchema } from "../search/related-question.js";
|
|
5
8
|
import { SearchSchema } from "../search/search.js";
|
|
9
|
+
import { SearchSportsResultSchema } from "../search/sports-result.js";
|
|
6
10
|
import { SourceDocumentListSchema } from "../source/document-list.js";
|
|
7
11
|
const WebSearchSchemaDefinition = z.object({
|
|
8
12
|
/** Google's AI Overview: returned whenever Google answers inline or its deferred overview is stored (fetched by this or an earlier search that set `deferredAiOverview`); null when Google produced none or no such fetch stored its deferred overview */
|
|
9
13
|
aiOverview: SearchAiOverviewSchema.nullish(),
|
|
14
|
+
/** Google's direct answer box; null when the page shows none */
|
|
15
|
+
answerBox: SearchAnswerBoxSchema.nullish(),
|
|
10
16
|
/** Source-document ledger row backing this result */
|
|
11
17
|
document: SourceDocumentListSchema,
|
|
18
|
+
/** Google's knowledge panel; null when the page shows none */
|
|
19
|
+
knowledgeGraph: SearchKnowledgeGraphSchema.nullish(),
|
|
20
|
+
/** Google's "People also ask" questions; null when the page shows none */
|
|
21
|
+
relatedQuestion: z.array(SearchRelatedQuestionSchema).nullish(),
|
|
22
|
+
/** Google's related searches; null when the page shows none */
|
|
23
|
+
relatedSearch: z.array(z.string()).nullish(),
|
|
12
24
|
/** Normalized result items in provider rank order */
|
|
13
25
|
result: z.array(SearchHitSchema),
|
|
14
26
|
/** Web search request represented by this result */
|
|
15
27
|
search: SearchSchema,
|
|
28
|
+
/** Google's game spotlight; null when the page shows none */
|
|
29
|
+
sportsResult: SearchSportsResultSchema.nullish(),
|
|
16
30
|
});
|
|
17
31
|
/**
|
|
18
32
|
* Live web search result with its backing source-document row and normalized items
|