@aventurevc/api-schemas 0.8.164 → 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.
|
@@ -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
|
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",
|