@aventurevc/api-schemas 0.8.156 → 0.8.158

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.
Files changed (37) hide show
  1. package/dist/billing/additional-usage-funding-type.d.ts +2 -0
  2. package/dist/billing/additional-usage-funding-type.js +2 -0
  3. package/dist/billing/additional-usage-meter.d.ts +1 -0
  4. package/dist/billing/additional-usage-meter.js +1 -0
  5. package/dist/billing/additional-usage-mutation.d.ts +25 -0
  6. package/dist/billing/additional-usage-mutation.js +22 -0
  7. package/dist/billing/additional-usage-type.d.ts +1 -0
  8. package/dist/billing/additional-usage-type.js +1 -0
  9. package/dist/billing/additional-usage.d.ts +1 -0
  10. package/dist/billing/additional-usage.js +2 -1
  11. package/dist/billing/catalog-plan.d.ts +2 -2
  12. package/dist/billing/catalog.d.ts +2 -2
  13. package/dist/billing/checkout-mutation.d.ts +2 -2
  14. package/dist/billing/checkout.d.ts +2 -2
  15. package/dist/billing/credit-pack-type.d.ts +3 -0
  16. package/dist/billing/credit-pack-type.js +3 -0
  17. package/dist/billing/credit-purchase-confirmation.d.ts +22 -0
  18. package/dist/billing/credit-purchase-confirmation.js +18 -0
  19. package/dist/billing/credit-purchase-mutation.d.ts +24 -0
  20. package/dist/billing/credit-purchase-mutation.js +17 -0
  21. package/dist/billing/credit-purchase.d.ts +27 -0
  22. package/dist/billing/credit-purchase.js +19 -0
  23. package/dist/billing/discount.d.ts +24 -0
  24. package/dist/billing/discount.js +25 -0
  25. package/dist/billing/next-charge.d.ts +34 -0
  26. package/dist/billing/next-charge.js +23 -0
  27. package/dist/billing/plan-change-mutation.d.ts +2 -2
  28. package/dist/billing/plan-change.d.ts +2 -2
  29. package/dist/billing/plan-type.d.ts +2 -2
  30. package/dist/billing/plan-type.js +3 -6
  31. package/dist/billing/portal-mutation.d.ts +21 -0
  32. package/dist/billing/portal-mutation.js +16 -0
  33. package/dist/billing/subscription.d.ts +4 -4
  34. package/dist/http/problem-detail.d.ts +3 -0
  35. package/dist/http/problem-detail.js +6 -0
  36. package/dist/openapi-component-manifest.js +22 -0
  37. 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
- /** Prepaid credit not yet consumed by priced usage, in cents. */
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: "PLUS_MONTHLY" | "PLUS_YEARLY" | "PRO_MONTHLY" | "PRO_YEARLY" | "PRO_YEARLY_PROMOTION";
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: "PLUS_MONTHLY" | "PLUS_YEARLY" | "PRO_MONTHLY" | "PRO_YEARLY" | "PRO_YEARLY_PROMOTION";
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.enum([
22
- "PLUS_MONTHLY",
23
- "PLUS_YEARLY",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.156",
3
+ "version": "0.8.158",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",