@aventurevc/api-schemas 0.8.527 → 0.8.529
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-mutation.d.ts +3 -0
- package/dist/billing/additional-usage-mutation.js +6 -0
- package/dist/billing/additional-usage.d.ts +14 -0
- package/dist/billing/additional-usage.js +11 -1
- package/dist/billing/auto-top-up-status.d.ts +23 -0
- package/dist/billing/auto-top-up-status.js +23 -0
- package/dist/billing/credit-purchase-cap-decision.d.ts +1 -1
- package/dist/billing/credit-purchase-cap-decision.js +1 -1
- package/dist/billing/credit-purchase-mutation.d.ts +1 -0
- package/dist/billing/credit-purchase-mutation.js +3 -1
- package/dist/billing/payment-profile.d.ts +1 -0
- package/dist/billing/payment-profile.js +2 -0
- package/dist/billing/subscription.d.ts +10 -0
- package/dist/http/problem-detail.d.ts +6 -0
- package/dist/openapi-component-manifest.js +4 -0
- package/dist/prose/violation.d.ts +3 -0
- package/dist/prose/violation.js +6 -0
- package/dist/search/search.js +1 -1
- package/dist/text/type-option.d.ts +10 -1
- package/dist/text/type-option.js +3 -1
- package/package.json +1 -1
|
@@ -2,6 +2,9 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const BillingAdditionalUsageMutationSchemaDefinition: z.ZodObject<{
|
|
3
3
|
assistantPurchaseEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4
4
|
authorizationQuote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
autoTopUpAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
+
autoTopUpCardRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
autoTopUpEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5
8
|
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6
9
|
funding: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
7
10
|
PREPAID_CREDIT: "PREPAID_CREDIT";
|
|
@@ -6,6 +6,12 @@ const BillingAdditionalUsageMutationSchemaDefinition = z.object({
|
|
|
6
6
|
assistantPurchaseEnabled: z.boolean().nullish(),
|
|
7
7
|
/** Exact user quote authorizing this delegated settings change, including the funding and monthly cap decision (keep, set, or no cap). Required for delegated changes that enable usage or change funding, cap, or invoice increment. Ask the user first; send their words unchanged. This quote is retained verbatim, never returned as settings. */
|
|
8
8
|
authorizationQuote: z.string().max(4000).nullish(),
|
|
9
|
+
/** Full amount of each automatic purchase, selected from the credit-pack catalog. No amount is preselected. */
|
|
10
|
+
autoTopUpAmountCents: z.number().int().nullish(),
|
|
11
|
+
/** The displayed default card's current revision. Send it when accepting or revising standing top-up terms; omission never renews consent. */
|
|
12
|
+
autoTopUpCardRevision: z.string().nullish(),
|
|
13
|
+
/** Authorize automatic purchases only on the approved card. If the default card differs at the pre-charge check, top-up pauses. A later default change cannot stop an admitted charge. Null turns top-up off; omission keeps the current choice. */
|
|
14
|
+
autoTopUpEnabled: z.boolean().nullish(),
|
|
9
15
|
/** Turn recording of usage past the monthly caps on or off. */
|
|
10
16
|
enabled: z.boolean().nullish(),
|
|
11
17
|
funding: BillingAdditionalUsageFundingTypeSchema.nullish(),
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const BillingAdditionalUsageSchemaDefinition: z.ZodObject<{
|
|
3
3
|
assistantPurchaseEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
4
|
+
autoTopUpAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5
|
+
autoTopUpEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6
|
+
autoTopUpStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
7
|
+
AUTHENTICATION_REQUIRED: "AUTHENTICATION_REQUIRED";
|
|
8
|
+
MONTHLY_LIMIT_REACHED: "MONTHLY_LIMIT_REACHED";
|
|
9
|
+
OFF: "OFF";
|
|
10
|
+
PAYMENT_DECLINED: "PAYMENT_DECLINED";
|
|
11
|
+
PAYMENT_METHOD_REQUIRED: "PAYMENT_METHOD_REQUIRED";
|
|
12
|
+
PROCESSING: "PROCESSING";
|
|
13
|
+
READY: "READY";
|
|
14
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
15
|
+
}>>>;
|
|
16
|
+
autoTopUpThresholdCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
17
|
availableCreditCents: z.ZodNumber;
|
|
5
18
|
blocked: z.ZodBoolean;
|
|
6
19
|
enabled: z.ZodBoolean;
|
|
@@ -20,6 +33,7 @@ declare const BillingAdditionalUsageSchemaDefinition: z.ZodObject<{
|
|
|
20
33
|
}, import("./additional-usage-meter.ts").BillingAdditionalUsageMeterSchemaInput>>>;
|
|
21
34
|
resetAt: z.ZodISODateTime;
|
|
22
35
|
spendCapCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
spendLimitUsedCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
37
|
spentCents: z.ZodNumber;
|
|
24
38
|
unbilledCents: z.ZodNumber;
|
|
25
39
|
}, z.core.$strip>;
|
|
@@ -2,9 +2,17 @@
|
|
|
2
2
|
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
|
+
import { BillingAutoTopUpStatusSchema } from "./auto-top-up-status.js";
|
|
5
6
|
const BillingAdditionalUsageSchemaDefinition = z.object({
|
|
6
7
|
/** Whether assistants may request billing changes with an exact user authorization quote. Defaults to false; only a verified first-party user session may change it. This permission neither enables usage nor buys credit. */
|
|
7
8
|
assistantPurchaseEnabled: z.boolean().default(false).optional(),
|
|
9
|
+
/** Selected automatic purchase amount, in USD cents. */
|
|
10
|
+
autoTopUpAmountCents: z.number().int().nullish(),
|
|
11
|
+
/** Whether the account has a current automatic top-up authorization. */
|
|
12
|
+
autoTopUpEnabled: z.boolean().nullish(),
|
|
13
|
+
autoTopUpStatus: BillingAutoTopUpStatusSchema.nullish(),
|
|
14
|
+
/** Spendable balance below which a debit can trigger a top-up, in USD cents. */
|
|
15
|
+
autoTopUpThresholdCents: z.number().int().nullish(),
|
|
8
16
|
/** Spendable prepaid credit after pending usage and invoice-line rounding reserves, in cents. */
|
|
9
17
|
availableCreditCents: z.number(),
|
|
10
18
|
/** True while a failed threshold invoice blocks additional usage; paying it in Billing Portal clears the block. */
|
|
@@ -17,8 +25,10 @@ const BillingAdditionalUsageSchemaDefinition = z.object({
|
|
|
17
25
|
meter: z.array(BillingAdditionalUsageMeterSchema),
|
|
18
26
|
/** When spentCents returns to zero: the next UTC month. */
|
|
19
27
|
resetAt: z.iso.datetime({ offset: true }),
|
|
20
|
-
/** Optional monthly usage spend cap in cents for either funding type. Null means no configured monthly cap
|
|
28
|
+
/** Optional monthly usage spend cap in cents for either funding type. Null means no configured monthly cap. One-time purchases are outside the limit; automatic purchases count toward it. */
|
|
21
29
|
spendCapCents: z.number().int().nullish(),
|
|
30
|
+
/** Usage and automatic purchases counted against this UTC month's limit, in exact cents. */
|
|
31
|
+
spendLimitUsedCents: z.number().nullish(),
|
|
22
32
|
/** Additional usage priced this UTC month, in cents. */
|
|
23
33
|
spentCents: z.number(),
|
|
24
34
|
/** Priced usage not yet paid by credit or placed on an invoice, in cents; the next threshold or period invoice bills it. */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Current state of automatic prepaid credit purchases.
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema BillingAutoTopUpStatus
|
|
6
|
+
* @endpoint GET /v1/billing/subscription
|
|
7
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
8
|
+
* @usedBySchema BillingAdditionalUsageSchema
|
|
9
|
+
* @contractShape billing.auto-top-up-status
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export declare const BillingAutoTopUpStatusSchema: z.ZodEnum<{
|
|
13
|
+
AUTHENTICATION_REQUIRED: "AUTHENTICATION_REQUIRED";
|
|
14
|
+
MONTHLY_LIMIT_REACHED: "MONTHLY_LIMIT_REACHED";
|
|
15
|
+
OFF: "OFF";
|
|
16
|
+
PAYMENT_DECLINED: "PAYMENT_DECLINED";
|
|
17
|
+
PAYMENT_METHOD_REQUIRED: "PAYMENT_METHOD_REQUIRED";
|
|
18
|
+
PROCESSING: "PROCESSING";
|
|
19
|
+
READY: "READY";
|
|
20
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
21
|
+
}>;
|
|
22
|
+
export type BillingAutoTopUpStatus = z.infer<typeof BillingAutoTopUpStatusSchema>;
|
|
23
|
+
//# sourceMappingURL=auto-top-up-status.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
|
+
* Current state of automatic prepaid credit purchases.
|
|
5
|
+
*
|
|
6
|
+
* @openapiSchema BillingAutoTopUpStatus
|
|
7
|
+
* @endpoint GET /v1/billing/subscription
|
|
8
|
+
* @endpoint PATCH /v1/billing/additional-usage
|
|
9
|
+
* @usedBySchema BillingAdditionalUsageSchema
|
|
10
|
+
* @contractShape billing.auto-top-up-status
|
|
11
|
+
* @contractRole canonical
|
|
12
|
+
*/
|
|
13
|
+
export const BillingAutoTopUpStatusSchema = z.enum([
|
|
14
|
+
"OFF",
|
|
15
|
+
"READY",
|
|
16
|
+
"PROCESSING",
|
|
17
|
+
"MONTHLY_LIMIT_REACHED",
|
|
18
|
+
"PAYMENT_METHOD_REQUIRED",
|
|
19
|
+
"PAYMENT_DECLINED",
|
|
20
|
+
"AUTHENTICATION_REQUIRED",
|
|
21
|
+
"UNAVAILABLE",
|
|
22
|
+
]);
|
|
23
|
+
//# sourceMappingURL=auto-top-up-status.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
/**
|
|
3
|
-
* KEEP_CAP preserves the current monthly usage cap, SET_CAP sets spendCapCents, and NO_CAP clears it.
|
|
3
|
+
* KEEP_CAP preserves the current monthly usage cap, SET_CAP sets spendCapCents, and NO_CAP clears it. One-time purchases are outside the limit.
|
|
4
4
|
*
|
|
5
5
|
* @openapiSchema BillingCreditPurchaseCapDecision
|
|
6
6
|
* @endpoint POST /v1/billing/credit-purchases
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
/**
|
|
4
|
-
* KEEP_CAP preserves the current monthly usage cap, SET_CAP sets spendCapCents, and NO_CAP clears it.
|
|
4
|
+
* KEEP_CAP preserves the current monthly usage cap, SET_CAP sets spendCapCents, and NO_CAP clears it. One-time purchases are outside the limit.
|
|
5
5
|
*
|
|
6
6
|
* @openapiSchema BillingCreditPurchaseCapDecision
|
|
7
7
|
* @endpoint POST /v1/billing/credit-purchases
|
|
@@ -2,6 +2,7 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const BillingCreditPurchaseMutationSchemaDefinition: z.ZodObject<{
|
|
3
3
|
amountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
4
|
authorizationQuote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
autoTopUpCardRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
6
|
capDecision: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
6
7
|
KEEP_CAP: "KEEP_CAP";
|
|
7
8
|
NO_CAP: "NO_CAP";
|
|
@@ -8,6 +8,8 @@ const BillingCreditPurchaseMutationSchemaDefinition = z.object({
|
|
|
8
8
|
amountCents: z.number().int().min(500).max(100000).nullish(),
|
|
9
9
|
/** Exact human authorization quotation; required for delegated API-key/OAuth purchases, preserved verbatim. */
|
|
10
10
|
authorizationQuote: z.string().max(4000).nullish(),
|
|
11
|
+
/** Displayed default card revision when a first-party session changes an active automatic top-up limit with SET_CAP. */
|
|
12
|
+
autoTopUpCardRevision: z.string().nullish(),
|
|
11
13
|
/** Explicit monthly usage cap decision; not a purchase budget. Required for delegated purchases. */
|
|
12
14
|
capDecision: BillingCreditPurchaseCapDecisionSchema.nullish(),
|
|
13
15
|
/** Credit pack to buy; its amount becomes prepaid credit. */
|
|
@@ -16,7 +18,7 @@ const BillingCreditPurchaseMutationSchemaDefinition = z.object({
|
|
|
16
18
|
purchaseMode: BillingCreditPurchaseModeSchema.default("HOSTED_CHECKOUT").optional(),
|
|
17
19
|
/** Explicitly save this hosted payment's card for future payments you authorize. Choose the billing default separately in payment settings. Defaults to false; available only for hosted Checkout and never enables assistant purchasing. */
|
|
18
20
|
savePaymentMethod: z.boolean().default(false).optional(),
|
|
19
|
-
/** Positive monthly usage cap in USD cents; supply only with SET_CAP.
|
|
21
|
+
/** Positive monthly usage cap in USD cents; supply only with SET_CAP. One-time purchases are outside this limit. */
|
|
20
22
|
spendCapCents: z.number().int().nullish(),
|
|
21
23
|
});
|
|
22
24
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const BillingPaymentProfileSchemaDefinition: z.ZodObject<{
|
|
3
|
+
cardRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3
4
|
freeTrialEligible: z.ZodOptional<z.ZodBoolean>;
|
|
4
5
|
introductoryOfferEligible: z.ZodBoolean;
|
|
5
6
|
paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
import { BillingPaymentMethodSchema } from "./payment-method.js";
|
|
4
4
|
const BillingPaymentProfileSchemaDefinition = z.object({
|
|
5
|
+
/** Opaque revision of the usable default card shown, for automatic top-up consent. */
|
|
6
|
+
cardRevision: z.string().nullish(),
|
|
5
7
|
/** Whether a new Stripe Checkout for a plan with freeTrialDays receives its free trial: the App Store does not bill the account and its Stripe Customer has no prior subscription, successful payment, or non-void invoice. An account without a Stripe Customer is eligible. This is Stripe history eligibility, not a guarantee of one trial across payment providers; plan changes are excluded. Absent on servers released before free-trial eligibility was introduced. */
|
|
6
8
|
freeTrialEligible: z.boolean().optional(),
|
|
7
9
|
/** Whether the caller's next purchase or upgrade to a plan with an introductoryAmount is charged that amount: true when the catalog offers introductoryAmount, the App Store does not bill the account, and either it has no earlier subscription, payment, or unvoided invoice, or it pays an active subscription on a cheaper sold plan and has never redeemed the introductory discount; false otherwise */
|
|
@@ -2,6 +2,10 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
3
3
|
additionalUsage: z.ZodType<{
|
|
4
4
|
assistantPurchaseEnabled?: boolean | undefined;
|
|
5
|
+
autoTopUpAmountCents?: number | null | undefined;
|
|
6
|
+
autoTopUpEnabled?: boolean | null | undefined;
|
|
7
|
+
autoTopUpStatus?: "AUTHENTICATION_REQUIRED" | "MONTHLY_LIMIT_REACHED" | "OFF" | "PAYMENT_DECLINED" | "PAYMENT_METHOD_REQUIRED" | "PROCESSING" | "READY" | "UNAVAILABLE" | null | undefined;
|
|
8
|
+
autoTopUpThresholdCents?: number | null | undefined;
|
|
5
9
|
availableCreditCents: number;
|
|
6
10
|
blocked: boolean;
|
|
7
11
|
enabled: boolean;
|
|
@@ -14,10 +18,15 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
|
14
18
|
}[];
|
|
15
19
|
resetAt: string;
|
|
16
20
|
spendCapCents?: number | null | undefined;
|
|
21
|
+
spendLimitUsedCents?: number | null | undefined;
|
|
17
22
|
spentCents: number;
|
|
18
23
|
unbilledCents: number;
|
|
19
24
|
}, import("./additional-usage.ts").BillingAdditionalUsageSchemaInput, z.core.$ZodTypeInternals<{
|
|
20
25
|
assistantPurchaseEnabled?: boolean | undefined;
|
|
26
|
+
autoTopUpAmountCents?: number | null | undefined;
|
|
27
|
+
autoTopUpEnabled?: boolean | null | undefined;
|
|
28
|
+
autoTopUpStatus?: "AUTHENTICATION_REQUIRED" | "MONTHLY_LIMIT_REACHED" | "OFF" | "PAYMENT_DECLINED" | "PAYMENT_METHOD_REQUIRED" | "PROCESSING" | "READY" | "UNAVAILABLE" | null | undefined;
|
|
29
|
+
autoTopUpThresholdCents?: number | null | undefined;
|
|
21
30
|
availableCreditCents: number;
|
|
22
31
|
blocked: boolean;
|
|
23
32
|
enabled: boolean;
|
|
@@ -30,6 +39,7 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
|
30
39
|
}[];
|
|
31
40
|
resetAt: string;
|
|
32
41
|
spendCapCents?: number | null | undefined;
|
|
42
|
+
spendLimitUsedCents?: number | null | undefined;
|
|
33
43
|
spentCents: number;
|
|
34
44
|
unbilledCents: number;
|
|
35
45
|
}, import("./additional-usage.ts").BillingAdditionalUsageSchemaInput>>;
|
|
@@ -328,6 +328,9 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
328
328
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
329
329
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./json-value.ts").JsonValue, import("./json-value.ts").JsonValue, z.core.$ZodTypeInternals<import("./json-value.ts").JsonValue, import("./json-value.ts").JsonValue>>>>;
|
|
330
330
|
proseViolation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<{
|
|
331
|
+
claim?: string | null | undefined;
|
|
332
|
+
field?: string | null | undefined;
|
|
333
|
+
fix?: string | null | undefined;
|
|
331
334
|
overridable: boolean;
|
|
332
335
|
passage: string;
|
|
333
336
|
problem: string;
|
|
@@ -335,6 +338,9 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
335
338
|
supportedWording?: string | null | undefined;
|
|
336
339
|
unsupportedSpan?: string[] | null | undefined;
|
|
337
340
|
}, import("../prose/violation.ts").ProseViolationSchemaInput, z.core.$ZodTypeInternals<{
|
|
341
|
+
claim?: string | null | undefined;
|
|
342
|
+
field?: string | null | undefined;
|
|
343
|
+
fix?: string | null | undefined;
|
|
338
344
|
overridable: boolean;
|
|
339
345
|
passage: string;
|
|
340
346
|
problem: string;
|
|
@@ -89,6 +89,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
89
89
|
modulePath: "billing/additional-usage-type",
|
|
90
90
|
schemaName: "BillingAdditionalUsageTypeSchema",
|
|
91
91
|
},
|
|
92
|
+
BillingAutoTopUpStatus: {
|
|
93
|
+
modulePath: "billing/auto-top-up-status",
|
|
94
|
+
schemaName: "BillingAutoTopUpStatusSchema",
|
|
95
|
+
},
|
|
92
96
|
BillingCatalog: { modulePath: "billing/catalog", schemaName: "BillingCatalogSchema" },
|
|
93
97
|
BillingCatalogAdditionalUsage: {
|
|
94
98
|
modulePath: "billing/catalog-additional-usage",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const ProseViolationSchemaDefinition: z.ZodObject<{
|
|
3
|
+
claim: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3
6
|
overridable: z.ZodBoolean;
|
|
4
7
|
passage: z.ZodString;
|
|
5
8
|
problem: z.ZodUnion<readonly [z.ZodEnum<{
|
package/dist/prose/violation.js
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
import { ProseProblemSchema } from "./problem.js";
|
|
4
4
|
const ProseViolationSchemaDefinition = z.object({
|
|
5
|
+
/** The offending claim, brief statement, or excerpt that triggered this violation when applicable. */
|
|
6
|
+
claim: z.string().nullish(),
|
|
7
|
+
/** Which request field, brief slot, or target holds this defect when pinpointable (for example, writerBrief.metaAnalysis.answer, positioning[CATEGORY], or text). */
|
|
8
|
+
field: z.string().nullish(),
|
|
9
|
+
/** Concrete repair action or supported replacement wording to resolve this violation. */
|
|
10
|
+
fix: z.string().nullish(),
|
|
5
11
|
/** Whether proseOverrideReason can accept this problem; ProblemDetail.hint says when an override is allowed. */
|
|
6
12
|
overridable: z.boolean(),
|
|
7
13
|
/** The rejected sentence or paragraph, the whole text for a global text-contract violation, or the source URL for a legal-page source. */
|
package/dist/search/search.js
CHANGED
|
@@ -37,7 +37,7 @@ const SearchSchemaDefinition = z.object({
|
|
|
37
37
|
retrievedFor: EntityPersonOwnerSchema.nullish(),
|
|
38
38
|
/** Search text sent to the upstream web search provider, at most the search catalog's text.maxSearchTermLength characters; a longer query answers 422 naming that limit, so shorten it rather than retrying. */
|
|
39
39
|
search: z.string(),
|
|
40
|
-
/** Optional label for the calling application, up to 64 characters, stored with the search for attribution and abuse review. */
|
|
40
|
+
/** Optional label for the calling application, up to 64 characters, stored with the search for attribution and abuse review. signal-gap-fill is reserved: POST /v1/web/search refuses it with 422 before any charge or provider call. */
|
|
41
41
|
source: z.string().max(64).nullish(),
|
|
42
42
|
});
|
|
43
43
|
/**
|
|
@@ -14,12 +14,21 @@ declare const TextTypeOptionSchemaDefinition: z.ZodObject<{
|
|
|
14
14
|
}, z.core.$strip>>>;
|
|
15
15
|
privateType: z.ZodBoolean;
|
|
16
16
|
rewriteHint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
terminalParagraphShape: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18
|
+
maxChars: z.ZodInt;
|
|
19
|
+
maxClaimWords: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
20
|
+
maxParagraphs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
21
|
+
maxSentences: z.ZodInt;
|
|
22
|
+
minChars: z.ZodInt;
|
|
23
|
+
minParagraphs: z.ZodInt;
|
|
24
|
+
minSentences: z.ZodInt;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
17
26
|
}, z.core.$strip>;
|
|
18
27
|
type TextTypeOptionDefinition = z.infer<typeof TextTypeOptionSchemaDefinition>;
|
|
19
28
|
export interface TextTypeOptionSchemaInput extends z.input<typeof TextTypeOptionSchemaDefinition> {
|
|
20
29
|
}
|
|
21
30
|
/**
|
|
22
|
-
* A text type the text endpoints accept; entity rows include minWords, maxWords, rewriteHint, and
|
|
31
|
+
* A text type the text endpoints accept; entity rows include minWords, maxWords, rewriteHint, paragraphShape, and terminalParagraphShape when that type has length and paragraph rules.
|
|
23
32
|
*
|
|
24
33
|
* @openapiSchema TextTypeOption
|
|
25
34
|
* @endpoint GET /v1/entities/texts/types
|
package/dist/text/type-option.js
CHANGED
|
@@ -14,9 +14,11 @@ const TextTypeOptionSchemaDefinition = z.object({
|
|
|
14
14
|
privateType: z.boolean(),
|
|
15
15
|
/** Advice for rewriting text that breaks this type's rules. */
|
|
16
16
|
rewriteHint: z.string().nullish(),
|
|
17
|
+
/** Paragraph rules that replace paragraphShape when the subject has a terminal operating status (closed or acquired). */
|
|
18
|
+
terminalParagraphShape: ResearchParagraphShapeSchema.nullish(),
|
|
17
19
|
});
|
|
18
20
|
/**
|
|
19
|
-
* A text type the text endpoints accept; entity rows include minWords, maxWords, rewriteHint, and
|
|
21
|
+
* A text type the text endpoints accept; entity rows include minWords, maxWords, rewriteHint, paragraphShape, and terminalParagraphShape when that type has length and paragraph rules.
|
|
20
22
|
*
|
|
21
23
|
* @openapiSchema TextTypeOption
|
|
22
24
|
* @endpoint GET /v1/entities/texts/types
|