@aventurevc/api-schemas 0.8.420 → 0.8.421

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.
@@ -23,12 +23,19 @@ declare const BillingCatalogPlanSchemaDefinition: z.ZodObject<{
23
23
  UNLIMITED_MONTHLY: "UNLIMITED_MONTHLY";
24
24
  };
25
25
  };
26
- tier: z.ZodEnum<{
26
+ tier: z.ZodUnion<readonly [z.ZodEnum<{
27
27
  ESSENTIAL: "ESSENTIAL";
28
28
  PLUS: "PLUS";
29
29
  PRO: "PRO";
30
30
  UNLIMITED: "UNLIMITED";
31
- }>;
31
+ }>, z.ZodString]> & {
32
+ enum: {
33
+ ESSENTIAL: "ESSENTIAL";
34
+ PLUS: "PLUS";
35
+ PRO: "PRO";
36
+ UNLIMITED: "UNLIMITED";
37
+ };
38
+ };
32
39
  unitAmount: z.ZodNumber;
33
40
  }, z.core.$strip>;
34
41
  type BillingCatalogPlanDefinition = z.infer<typeof BillingCatalogPlanSchemaDefinition>;
@@ -1,6 +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
  import { BillingPlanTypeSchema } from "./plan-type.js";
4
+ import { BillingTierTypeSchema } from "./tier-type.js";
4
5
  const BillingCatalogPlanSchemaDefinition = z.object({
5
6
  /** App Store product id that sells this plan in the iOS and Mac apps; absent when the plan sells only on the web. */
6
7
  appStoreProductId: z.string().nullish(),
@@ -14,7 +15,7 @@ const BillingCatalogPlanSchemaDefinition = z.object({
14
15
  /** First invoice amount in currency minor units (USD cents) when an automatic, one-time Checkout offer is available; absent otherwise. Renewals use unitAmount. */
15
16
  introductoryAmount: z.number().int().nullish(),
16
17
  plan: BillingPlanTypeSchema,
17
- tier: z.enum(["ESSENTIAL", "PLUS", "PRO", "UNLIMITED"]),
18
+ tier: BillingTierTypeSchema,
18
19
  /** Price per cadence in currency minor units, not major units: USD cents (4900 means USD 49.00). */
19
20
  unitAmount: z.number().int(),
20
21
  });
@@ -12,12 +12,19 @@ declare const BillingCatalogTierSchemaDefinition: z.ZodObject<{
12
12
  displayName: z.ZodString;
13
13
  lookupDailyLimit: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
14
14
  searchDailyLimit: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
15
- tier: z.ZodEnum<{
15
+ tier: z.ZodUnion<readonly [z.ZodEnum<{
16
16
  ESSENTIAL: "ESSENTIAL";
17
17
  PLUS: "PLUS";
18
18
  PRO: "PRO";
19
19
  UNLIMITED: "UNLIMITED";
20
- }>;
20
+ }>, z.ZodString]> & {
21
+ enum: {
22
+ ESSENTIAL: "ESSENTIAL";
23
+ PLUS: "PLUS";
24
+ PRO: "PRO";
25
+ UNLIMITED: "UNLIMITED";
26
+ };
27
+ };
21
28
  }, z.core.$strip>;
22
29
  type BillingCatalogTierDefinition = z.infer<typeof BillingCatalogTierSchemaDefinition>;
23
30
  export interface BillingCatalogTierSchemaInput extends z.input<typeof BillingCatalogTierSchemaDefinition> {
@@ -1,6 +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
  import { BillingCatalogAllowanceSchema } from "./catalog-allowance.js";
4
+ import { BillingTierTypeSchema } from "./tier-type.js";
4
5
  const BillingCatalogTierSchemaDefinition = z.object({
5
6
  /** Researchly AI credits per Researchly billing period; 0 withholds them and absent means uncapped. */
6
7
  aiCreditLimit: z.int().nullish(),
@@ -12,7 +13,7 @@ const BillingCatalogTierSchemaDefinition = z.object({
12
13
  lookupDailyLimit: z.int().nullish(),
13
14
  /** Searches per UTC day without a paid plan: plain-English company, people, and federated search, one per request; link search always needs a paid plan. Past it a search answers 402 subscription_required until the next UTC day. Absent on a paid tier, which has no daily search gate. */
14
15
  searchDailyLimit: z.int().nullish(),
15
- tier: z.enum(["ESSENTIAL", "PLUS", "PRO", "UNLIMITED"]),
16
+ tier: BillingTierTypeSchema,
16
17
  });
17
18
  /**
18
19
  * One subscription tier, its monthly caps, and its free daily allowances.
@@ -25,7 +25,7 @@ declare const BillingCatalogSchemaDefinition: z.ZodObject<{
25
25
  freeTrialDays?: number | null | undefined;
26
26
  introductoryAmount?: number | null | undefined;
27
27
  plan: string;
28
- tier: "ESSENTIAL" | "PLUS" | "PRO" | "UNLIMITED";
28
+ tier: string;
29
29
  unitAmount: number;
30
30
  }, import("./catalog-plan.ts").BillingCatalogPlanSchemaInput, z.core.$ZodTypeInternals<{
31
31
  appStoreProductId?: string | null | undefined;
@@ -35,7 +35,7 @@ declare const BillingCatalogSchemaDefinition: z.ZodObject<{
35
35
  freeTrialDays?: number | null | undefined;
36
36
  introductoryAmount?: number | null | undefined;
37
37
  plan: string;
38
- tier: "ESSENTIAL" | "PLUS" | "PRO" | "UNLIMITED";
38
+ tier: string;
39
39
  unitAmount: number;
40
40
  }, import("./catalog-plan.ts").BillingCatalogPlanSchemaInput>>>;
41
41
  tier: z.ZodArray<z.ZodType<{
@@ -48,7 +48,7 @@ declare const BillingCatalogSchemaDefinition: z.ZodObject<{
48
48
  displayName: string;
49
49
  lookupDailyLimit?: number | null | undefined;
50
50
  searchDailyLimit?: number | null | undefined;
51
- tier: "ESSENTIAL" | "PLUS" | "PRO" | "UNLIMITED";
51
+ tier: string;
52
52
  }, import("./catalog-tier.ts").BillingCatalogTierSchemaInput, z.core.$ZodTypeInternals<{
53
53
  aiCreditLimit?: number | null | undefined;
54
54
  allowance: {
@@ -59,7 +59,7 @@ declare const BillingCatalogSchemaDefinition: z.ZodObject<{
59
59
  displayName: string;
60
60
  lookupDailyLimit?: number | null | undefined;
61
61
  searchDailyLimit?: number | null | undefined;
62
- tier: "ESSENTIAL" | "PLUS" | "PRO" | "UNLIMITED";
62
+ tier: string;
63
63
  }, import("./catalog-tier.ts").BillingCatalogTierSchemaInput>>>;
64
64
  }, z.core.$strip>;
65
65
  type BillingCatalogDefinition = z.infer<typeof BillingCatalogSchemaDefinition>;
@@ -236,12 +236,19 @@ declare const BillingSubscriptionSchemaDefinition: z.ZodObject<{
236
236
  TRIALING: "TRIALING";
237
237
  UNPAID: "UNPAID";
238
238
  }>;
239
- tier: z.ZodEnum<{
239
+ tier: z.ZodUnion<readonly [z.ZodEnum<{
240
240
  ESSENTIAL: "ESSENTIAL";
241
241
  PLUS: "PLUS";
242
242
  PRO: "PRO";
243
243
  UNLIMITED: "UNLIMITED";
244
- }>;
244
+ }>, z.ZodString]> & {
245
+ enum: {
246
+ ESSENTIAL: "ESSENTIAL";
247
+ PLUS: "PLUS";
248
+ PRO: "PRO";
249
+ UNLIMITED: "UNLIMITED";
250
+ };
251
+ };
245
252
  }, z.core.$strip>;
246
253
  type BillingSubscriptionDefinition = z.infer<typeof BillingSubscriptionSchemaDefinition>;
247
254
  export interface BillingSubscriptionSchemaInput extends z.input<typeof BillingSubscriptionSchemaDefinition> {
@@ -3,6 +3,7 @@ import { z } from "zod/v4";
3
3
  import { BillingAdditionalUsageSchema } from "./additional-usage.js";
4
4
  import { BillingPlanTypeSchema } from "./plan-type.js";
5
5
  import { BillingRecurringPriceSchema } from "./recurring-price.js";
6
+ import { BillingTierTypeSchema } from "./tier-type.js";
6
7
  import { ResearchAllowanceUsageSchema } from "../research/allowance-usage.js";
7
8
  const BillingSubscriptionSchemaDefinition = z.object({
8
9
  additionalUsage: BillingAdditionalUsageSchema,
@@ -44,7 +45,7 @@ const BillingSubscriptionSchemaDefinition = z.object({
44
45
  "PAUSED",
45
46
  ]),
46
47
  /** Tier whose monthly allowances apply now */
47
- tier: z.enum(["ESSENTIAL", "PLUS", "PRO", "UNLIMITED"]),
48
+ tier: BillingTierTypeSchema,
48
49
  });
49
50
  /**
50
51
  * Current plan (Essential, AI Plus, AI Pro, or Unlimited), subscription status, and monthly usage.
@@ -0,0 +1,28 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Subscription tier that sets an account's monthly caps and included features.
4
+ *
5
+ * @openapiSchema BillingTierType
6
+ * @endpoint GET /v1/billing/plans
7
+ * @endpoint GET /v1/billing/subscription
8
+ * @usedBySchema BillingCatalogPlanSchema
9
+ * @usedBySchema BillingCatalogTierSchema
10
+ * @usedBySchema BillingSubscriptionSchema
11
+ * @contractShape billing.tier-type
12
+ * @contractRole canonical
13
+ */
14
+ export declare const BillingTierTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
15
+ ESSENTIAL: "ESSENTIAL";
16
+ PLUS: "PLUS";
17
+ PRO: "PRO";
18
+ UNLIMITED: "UNLIMITED";
19
+ }>, z.ZodString]> & {
20
+ enum: {
21
+ ESSENTIAL: "ESSENTIAL";
22
+ PLUS: "PLUS";
23
+ PRO: "PRO";
24
+ UNLIMITED: "UNLIMITED";
25
+ };
26
+ };
27
+ export type BillingTierType = z.infer<typeof BillingTierTypeSchema>;
28
+ //# sourceMappingURL=tier-type.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
+ const BillingTierTypeSchemaKnownMembers = z.enum(["ESSENTIAL", "PLUS", "PRO", "UNLIMITED"]);
4
+ /**
5
+ * Subscription tier that sets an account's monthly caps and included features.
6
+ *
7
+ * @openapiSchema BillingTierType
8
+ * @endpoint GET /v1/billing/plans
9
+ * @endpoint GET /v1/billing/subscription
10
+ * @usedBySchema BillingCatalogPlanSchema
11
+ * @usedBySchema BillingCatalogTierSchema
12
+ * @usedBySchema BillingSubscriptionSchema
13
+ * @contractShape billing.tier-type
14
+ * @contractRole canonical
15
+ */
16
+ export const BillingTierTypeSchema = Object.assign(z.union([BillingTierTypeSchemaKnownMembers, z.string()]), { enum: BillingTierTypeSchemaKnownMembers.enum });
17
+ //# sourceMappingURL=tier-type.js.map
@@ -164,6 +164,7 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
164
164
  modulePath: "billing/subscription-mutation",
165
165
  schemaName: "BillingSubscriptionMutationSchema",
166
166
  },
167
+ BillingTierType: { modulePath: "billing/tier-type", schemaName: "BillingTierTypeSchema" },
167
168
  BlogPost: { modulePath: "blog/post", schemaName: "BlogPostSchema" },
168
169
  BlogPostType: { modulePath: "blog/post-type", schemaName: "BlogPostTypeSchema" },
169
170
  ChartBucket: { modulePath: "chart/bucket", schemaName: "ChartBucketSchema" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.420",
3
+ "version": "0.8.421",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",