@aventurevc/api-schemas 0.8.163 → 0.8.165
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/catalog-tier.d.ts +1 -0
- package/dist/billing/catalog-tier.js +2 -0
- package/dist/billing/catalog.d.ts +2 -0
- package/dist/billing/payment-method.d.ts +4 -0
- package/dist/billing/payment-method.js +6 -0
- package/dist/billing/payment-profile.d.ts +25 -0
- package/dist/billing/payment-profile.js +19 -0
- package/dist/billing/plan-change-preview.d.ts +2 -0
- package/dist/billing/subscription-mutation.d.ts +2 -1
- package/dist/billing/subscription-mutation.js +3 -1
- package/dist/billing/subscription.d.ts +1 -0
- package/dist/billing/subscription.js +2 -0
- package/dist/entity/text.js +2 -0
- package/dist/http/problem-detail.js +1 -1
- package/dist/openapi-component-manifest.js +4 -0
- package/dist/research/paragraph-shape.d.ts +1 -1
- package/dist/research/paragraph-shape.js +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ declare const BillingCatalogTierSchemaDefinition: z.ZodObject<{
|
|
|
8
8
|
limit?: number | null | undefined;
|
|
9
9
|
type: "COMPANY" | "ENTITY_BRAND" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
10
10
|
}, import("./catalog-allowance.ts").BillingCatalogAllowanceSchemaInput>>>;
|
|
11
|
+
description: z.ZodString;
|
|
11
12
|
displayName: z.ZodString;
|
|
12
13
|
tier: z.ZodEnum<{
|
|
13
14
|
ESSENTIAL: "ESSENTIAL";
|
|
@@ -5,6 +5,8 @@ const BillingCatalogTierSchemaDefinition = z.object({
|
|
|
5
5
|
/** Researchly AI credits per Researchly billing period; 0 withholds them and absent means uncapped. */
|
|
6
6
|
aiCreditLimit: z.int().nullish(),
|
|
7
7
|
allowance: z.array(BillingCatalogAllowanceSchema),
|
|
8
|
+
/** Who the tier is for, in one or two sentences; it states no caps or prices, which allowance and plan carry. */
|
|
9
|
+
description: z.string(),
|
|
8
10
|
displayName: z.string(),
|
|
9
11
|
tier: z.enum(["ESSENTIAL", "PLUS", "PRO", "UNLIMITED"]),
|
|
10
12
|
});
|
|
@@ -40,6 +40,7 @@ declare const BillingCatalogSchemaDefinition: z.ZodObject<{
|
|
|
40
40
|
limit?: number | null | undefined;
|
|
41
41
|
type: "COMPANY" | "ENTITY_BRAND" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
42
42
|
}[];
|
|
43
|
+
description: string;
|
|
43
44
|
displayName: string;
|
|
44
45
|
tier: "ESSENTIAL" | "PLUS" | "PRO" | "UNLIMITED";
|
|
45
46
|
}, import("./catalog-tier.ts").BillingCatalogTierSchemaInput, z.core.$ZodTypeInternals<{
|
|
@@ -48,6 +49,7 @@ declare const BillingCatalogSchemaDefinition: z.ZodObject<{
|
|
|
48
49
|
limit?: number | null | undefined;
|
|
49
50
|
type: "COMPANY" | "ENTITY_BRAND" | "ENTITY_VIEW" | "PERSON" | "PERSON_VIEW" | "WEB_SEARCH";
|
|
50
51
|
}[];
|
|
52
|
+
description: string;
|
|
51
53
|
displayName: string;
|
|
52
54
|
tier: "ESSENTIAL" | "PLUS" | "PRO" | "UNLIMITED";
|
|
53
55
|
}, import("./catalog-tier.ts").BillingCatalogTierSchemaInput>>>;
|
|
@@ -3,13 +3,17 @@ import { z } from "zod/v4";
|
|
|
3
3
|
* Card on file that pays the subscription.
|
|
4
4
|
*
|
|
5
5
|
* @openapiSchema BillingPaymentMethod
|
|
6
|
+
* @endpoint GET /v1/billing/subscription/payment-profile
|
|
6
7
|
* @endpoint POST /v1/billing/plan-change-previews
|
|
8
|
+
* @usedBySchema BillingPaymentProfileSchema
|
|
7
9
|
* @usedBySchema BillingPlanChangePreviewSchema
|
|
8
10
|
* @contractShape billing.payment-method
|
|
9
11
|
* @contractRole canonical
|
|
10
12
|
*/
|
|
11
13
|
export declare const BillingPaymentMethodSchema: z.ZodObject<{
|
|
12
14
|
brand: z.ZodString;
|
|
15
|
+
expiryMonth: z.ZodInt;
|
|
16
|
+
expiryYear: z.ZodInt;
|
|
13
17
|
last4: z.ZodString;
|
|
14
18
|
}, z.core.$strip>;
|
|
15
19
|
export type BillingPaymentMethod = z.infer<typeof BillingPaymentMethodSchema>;
|
|
@@ -4,7 +4,9 @@ import { z } from "zod/v4";
|
|
|
4
4
|
* Card on file that pays the subscription.
|
|
5
5
|
*
|
|
6
6
|
* @openapiSchema BillingPaymentMethod
|
|
7
|
+
* @endpoint GET /v1/billing/subscription/payment-profile
|
|
7
8
|
* @endpoint POST /v1/billing/plan-change-previews
|
|
9
|
+
* @usedBySchema BillingPaymentProfileSchema
|
|
8
10
|
* @usedBySchema BillingPlanChangePreviewSchema
|
|
9
11
|
* @contractShape billing.payment-method
|
|
10
12
|
* @contractRole canonical
|
|
@@ -12,6 +14,10 @@ import { z } from "zod/v4";
|
|
|
12
14
|
export const BillingPaymentMethodSchema = z.object({
|
|
13
15
|
/** Card brand as Stripe reports it */
|
|
14
16
|
brand: z.string(),
|
|
17
|
+
/** Expiry month, 1 through 12 */
|
|
18
|
+
expiryMonth: z.int(),
|
|
19
|
+
/** Four-digit expiry year */
|
|
20
|
+
expiryYear: z.int(),
|
|
15
21
|
/** Last four digits of the card number */
|
|
16
22
|
last4: z.string(),
|
|
17
23
|
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const BillingPaymentProfileSchemaDefinition: z.ZodObject<{
|
|
3
|
+
introductoryOfferEligible: z.ZodBoolean;
|
|
4
|
+
paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5
|
+
brand: z.ZodString;
|
|
6
|
+
expiryMonth: z.ZodInt;
|
|
7
|
+
expiryYear: z.ZodInt;
|
|
8
|
+
last4: z.ZodString;
|
|
9
|
+
}, z.core.$strip>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type BillingPaymentProfileDefinition = z.infer<typeof BillingPaymentProfileSchemaDefinition>;
|
|
12
|
+
export interface BillingPaymentProfileSchemaInput extends z.input<typeof BillingPaymentProfileSchemaDefinition> {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The caller's card on file and whether Checkout would charge each plan's introductoryAmount on the first payment, read live from Stripe.
|
|
16
|
+
*
|
|
17
|
+
* @openapiSchema BillingPaymentProfile
|
|
18
|
+
* @endpoint GET /v1/billing/subscription/payment-profile
|
|
19
|
+
* @contractShape billing.payment-profile
|
|
20
|
+
* @contractRole canonical
|
|
21
|
+
*/
|
|
22
|
+
export declare const BillingPaymentProfileSchema: z.ZodType<BillingPaymentProfileDefinition, BillingPaymentProfileSchemaInput>;
|
|
23
|
+
export type BillingPaymentProfile = z.infer<typeof BillingPaymentProfileSchema>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=payment-profile.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 { BillingPaymentMethodSchema } from "./payment-method.js";
|
|
4
|
+
const BillingPaymentProfileSchemaDefinition = z.object({
|
|
5
|
+
/** True when the catalog offers introductoryAmount, the App Store does not bill the account, and it has no earlier subscription, payment, or unvoided invoice; false otherwise */
|
|
6
|
+
introductoryOfferEligible: z.boolean(),
|
|
7
|
+
/** Card that pays the continuing Stripe subscription; absent without one or when it is paid by something other than a card */
|
|
8
|
+
paymentMethod: BillingPaymentMethodSchema.nullish(),
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* The caller's card on file and whether Checkout would charge each plan's introductoryAmount on the first payment, read live from Stripe.
|
|
12
|
+
*
|
|
13
|
+
* @openapiSchema BillingPaymentProfile
|
|
14
|
+
* @endpoint GET /v1/billing/subscription/payment-profile
|
|
15
|
+
* @contractShape billing.payment-profile
|
|
16
|
+
* @contractRole canonical
|
|
17
|
+
*/
|
|
18
|
+
export const BillingPaymentProfileSchema = BillingPaymentProfileSchemaDefinition;
|
|
19
|
+
//# sourceMappingURL=payment-profile.js.map
|
|
@@ -5,6 +5,8 @@ declare const BillingPlanChangePreviewSchemaDefinition: z.ZodObject<{
|
|
|
5
5
|
effectiveAt: z.ZodISODateTime;
|
|
6
6
|
paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7
7
|
brand: z.ZodString;
|
|
8
|
+
expiryMonth: z.ZodInt;
|
|
9
|
+
expiryYear: z.ZodInt;
|
|
8
10
|
last4: z.ZodString;
|
|
9
11
|
}, z.core.$strip>>>;
|
|
10
12
|
prorationDate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const BillingSubscriptionMutationSchemaDefinition: z.ZodObject<{
|
|
3
3
|
cancelAtPeriodEnd: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4
|
+
paused: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
type BillingSubscriptionMutationDefinition = z.infer<typeof BillingSubscriptionMutationSchemaDefinition>;
|
|
6
7
|
export interface BillingSubscriptionMutationSchemaInput extends z.input<typeof BillingSubscriptionMutationSchemaDefinition> {
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
|
-
* Merge patch of a continuing AI Plus or AI Pro subscription: cancel it at the period end or resume it.
|
|
10
|
+
* Merge patch of a continuing AI Plus or AI Pro subscription: cancel it at the period end or resume it, including one Stripe paused.
|
|
10
11
|
*
|
|
11
12
|
* @openapiSchema BillingSubscriptionMutation
|
|
12
13
|
* @endpoint PATCH /v1/billing/subscription
|
|
@@ -3,9 +3,11 @@ import { z } from "zod/v4";
|
|
|
3
3
|
const BillingSubscriptionMutationSchemaDefinition = z.object({
|
|
4
4
|
/** true ends the subscription at the current period end and drops a scheduled plan change; false resumes it and restores the plan change scheduled before the cancellation. Omit to change nothing. */
|
|
5
5
|
cancelAtPeriodEnd: z.boolean().nullish(),
|
|
6
|
+
/** false resumes a subscription Stripe paused because its trial ended without a payment method; add one with POST /v1/billing/portal-sessions first. The resumption starts a new billing period now and charges the plan to that card; a declined or authentication-held charge answers 409. true, or cancelAtPeriodEnd in the same request, is refused. Omit to change nothing. */
|
|
7
|
+
paused: z.boolean().nullish(),
|
|
6
8
|
});
|
|
7
9
|
/**
|
|
8
|
-
* Merge patch of a continuing AI Plus or AI Pro subscription: cancel it at the period end or resume it.
|
|
10
|
+
* Merge patch of a continuing AI Plus or AI Pro subscription: cancel it at the period end or resume it, including one Stripe paused.
|
|
9
11
|
*
|
|
10
12
|
* @openapiSchema BillingSubscriptionMutation
|
|
11
13
|
* @endpoint PATCH /v1/billing/subscription
|
|
@@ -155,6 +155,7 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
|
|
|
155
155
|
};
|
|
156
156
|
}, import("../research/allowance-usage.ts").ResearchAllowanceUsageSchemaInput>>;
|
|
157
157
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
158
|
+
creditPurchasable: z.ZodBoolean;
|
|
158
159
|
entitled: z.ZodBoolean;
|
|
159
160
|
originalStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
160
161
|
pendingPlan: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -10,6 +10,8 @@ const BillingSubscriptionSchemaDefinition = z.object({
|
|
|
10
10
|
allowance: ResearchAllowanceUsageSchema,
|
|
11
11
|
/** True when the plan is cancelled and ends at periodEnd */
|
|
12
12
|
cancelAtPeriodEnd: z.boolean(),
|
|
13
|
+
/** True when POST /v1/billing/credit-purchases sells this account a prepaid credit pack; false for an operator, a plan the App Store bills, an Unlimited plan, or a continuing paid plan that is not entitled (INCOMPLETE, PAST_DUE, UNPAID, or PAUSED) */
|
|
14
|
+
creditPurchasable: z.boolean(),
|
|
13
15
|
/** True while the subscription grants its paid tier */
|
|
14
16
|
entitled: z.boolean(),
|
|
15
17
|
/** Original start of the continuing paid subscription; absent when the provider did not supply it */
|
package/dist/entity/text.js
CHANGED
|
@@ -8,7 +8,9 @@ const EntityTextSchemaDefinition = z.object({
|
|
|
8
8
|
createdAt: z.iso.datetime({ offset: true }).nullish(),
|
|
9
9
|
/** Type-safe identifier for text records */
|
|
10
10
|
id: z.int(),
|
|
11
|
+
/** Whether this is the owner's current text of its textType; setting it clears the flag on the owner's other texts of that type. */
|
|
11
12
|
isCurrent: z.boolean().nullish(),
|
|
13
|
+
/** Whether this is the owner's primary text of its textType; setting it clears the flag on the owner's other texts of that type. */
|
|
12
14
|
isPrimary: z.boolean().nullish(),
|
|
13
15
|
language: z.string().nullish(),
|
|
14
16
|
/** Owning record, nested ids only: owner.entityId or owner.personId — exactly one is set, and no name fields. Writes are scoped by the owning entity/person route; owner is never a write field. */
|
|
@@ -28,7 +28,7 @@ const ProblemDetailSchemaDefinition = z.object({
|
|
|
28
28
|
"subscription_canceled",
|
|
29
29
|
/** Caller's subscription has a failed or unfinished payment, so it does not include this operation until the payment succeeds. Agent action: surface ProblemDetail.detail and stop; the account must update its payment method through the resolution's Billing Portal endpoint. */
|
|
30
30
|
"subscription_past_due",
|
|
31
|
-
/** Caller's subscription is paused, so it does not include this operation. Agent action: surface ProblemDetail.detail and stop; the account must
|
|
31
|
+
/** Caller's subscription is paused, so it does not include this operation. Agent action: surface ProblemDetail.detail and stop; the account must add a payment method through the resolution's Billing Portal endpoint, then resume with PATCH /v1/billing/subscription and paused false. */
|
|
32
32
|
"subscription_paused",
|
|
33
33
|
/** The caller's metered allowance for this operation is spent for the current period. Agent action: stop and report ProblemDetail.allowanceType, limit, used, remaining, and resetAt; resetAt is when the meter refills and is typically weeks away. Do not retry inside the period even though the status is 429. */
|
|
34
34
|
"billing_allowance_exhausted",
|
|
@@ -113,6 +113,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
113
113
|
modulePath: "billing/payment-method",
|
|
114
114
|
schemaName: "BillingPaymentMethodSchema",
|
|
115
115
|
},
|
|
116
|
+
BillingPaymentProfile: {
|
|
117
|
+
modulePath: "billing/payment-profile",
|
|
118
|
+
schemaName: "BillingPaymentProfileSchema",
|
|
119
|
+
},
|
|
116
120
|
BillingPlanChange: { modulePath: "billing/plan-change", schemaName: "BillingPlanChangeSchema" },
|
|
117
121
|
BillingPlanChangeMutation: {
|
|
118
122
|
modulePath: "billing/plan-change-mutation",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
/**
|
|
3
|
-
* Write-time per-paragraph shape rule for governed text bodies. Paragraphs split on `\n\n` (one blank line). Each paragraph must satisfy minChars..maxChars and minSentences..maxSentences; whole body must satisfy minParagraphs..maxParagraphs (null maxParagraphs = unbounded). Sentence boundaries follow Unicode rules (java.text.BreakIterator), so 'Inc.' and 'U.S.' do not split a sentence.
|
|
3
|
+
* Write-time per-paragraph shape rule for governed text bodies. Paragraphs split on `\n\n` (one blank line). Each paragraph must satisfy minChars..maxChars and minSentences..maxSentences; whole body must satisfy minParagraphs..maxParagraphs (null maxParagraphs = unbounded). Sentence boundaries follow Unicode rules (java.text.BreakIterator), so 'Inc.' and 'U.S.' do not split a sentence. Each paragraph ends in terminal punctuation (. ! ? or the CJK full stop, exclamation, and question marks), optionally followed by a closing quote, parenthesis, bracket, or guillemet.
|
|
4
4
|
*
|
|
5
5
|
* @openapiSchema ResearchParagraphShape
|
|
6
6
|
* @endpoint GET /v1/entities/research-snippets/types
|
|
@@ -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
|
-
* Write-time per-paragraph shape rule for governed text bodies. Paragraphs split on `\n\n` (one blank line). Each paragraph must satisfy minChars..maxChars and minSentences..maxSentences; whole body must satisfy minParagraphs..maxParagraphs (null maxParagraphs = unbounded). Sentence boundaries follow Unicode rules (java.text.BreakIterator), so 'Inc.' and 'U.S.' do not split a sentence.
|
|
4
|
+
* Write-time per-paragraph shape rule for governed text bodies. Paragraphs split on `\n\n` (one blank line). Each paragraph must satisfy minChars..maxChars and minSentences..maxSentences; whole body must satisfy minParagraphs..maxParagraphs (null maxParagraphs = unbounded). Sentence boundaries follow Unicode rules (java.text.BreakIterator), so 'Inc.' and 'U.S.' do not split a sentence. Each paragraph ends in terminal punctuation (. ! ? or the CJK full stop, exclamation, and question marks), optionally followed by a closing quote, parenthesis, bracket, or guillemet.
|
|
5
5
|
*
|
|
6
6
|
* @openapiSchema ResearchParagraphShape
|
|
7
7
|
* @endpoint GET /v1/entities/research-snippets/types
|