@aventurevc/api-schemas 0.8.456 → 0.8.458
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.
|
@@ -2,14 +2,14 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const BillingCreditPurchaseSchemaDefinition: z.ZodObject<{
|
|
3
3
|
amountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
4
|
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
-
expiresAt: z.
|
|
5
|
+
expiresAt: z.ZodISODateTime;
|
|
6
6
|
id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
7
|
-
pack: z.
|
|
7
|
+
pack: z.ZodEnum<{
|
|
8
8
|
USD_100: "USD_100";
|
|
9
9
|
USD_25: "USD_25";
|
|
10
10
|
USD_250: "USD_250";
|
|
11
11
|
USD_50: "USD_50";
|
|
12
|
-
}
|
|
12
|
+
}>;
|
|
13
13
|
paymentClientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
publishableKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
status: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -27,7 +27,7 @@ declare const BillingCreditPurchaseSchemaDefinition: z.ZodObject<{
|
|
|
27
27
|
PROCESSING: "PROCESSING";
|
|
28
28
|
};
|
|
29
29
|
}>>;
|
|
30
|
-
url: z.
|
|
30
|
+
url: z.ZodString;
|
|
31
31
|
}, z.core.$strip>;
|
|
32
32
|
type BillingCreditPurchaseDefinition = z.infer<typeof BillingCreditPurchaseSchemaDefinition>;
|
|
33
33
|
export interface BillingCreditPurchaseSchemaInput extends z.input<typeof BillingCreditPurchaseSchemaDefinition> {
|
|
@@ -5,14 +5,14 @@ import { BillingCreditPurchaseStatusSchema } from "./credit-purchase-status.js";
|
|
|
5
5
|
const BillingCreditPurchaseSchemaDefinition = z.object({
|
|
6
6
|
amountCents: z.number().int().nullish(),
|
|
7
7
|
currency: z.string().nullish(),
|
|
8
|
-
expiresAt: z.iso.datetime({ offset: true })
|
|
8
|
+
expiresAt: z.iso.datetime({ offset: true }),
|
|
9
9
|
id: z.uuid().nullish(),
|
|
10
|
-
pack: BillingCreditPackTypeSchema
|
|
10
|
+
pack: BillingCreditPackTypeSchema,
|
|
11
11
|
/** Only when bank authentication is required; finish with Stripe.js, then reread this purchase. */
|
|
12
12
|
paymentClientSecret: z.string().nullish(),
|
|
13
13
|
publishableKey: z.string().nullish(),
|
|
14
14
|
status: BillingCreditPurchaseStatusSchema.nullish(),
|
|
15
|
-
url: z.string()
|
|
15
|
+
url: z.string(),
|
|
16
16
|
});
|
|
17
17
|
/**
|
|
18
18
|
* Hosted Checkout destination and expiry for a prepaid credit pack.
|
|
@@ -48,4 +48,17 @@ export declare const OpenApiWriteReadbackSchema: z.ZodObject<{
|
|
|
48
48
|
}, z.core.$strict>>;
|
|
49
49
|
}, z.core.$strict>;
|
|
50
50
|
export type OpenApiWriteReadback = z.infer<typeof OpenApiWriteReadbackSchema>;
|
|
51
|
+
/**
|
|
52
|
+
* @usedByEndpoint none:external-root
|
|
53
|
+
* @shared primitive:multi OpenAPI read postcondition metadata; not direct because consumers interpret source-owned extension values rather than endpoint payloads
|
|
54
|
+
* @contractShape http.openapi-read-postcondition
|
|
55
|
+
* @contractRole canonical
|
|
56
|
+
* @ownerModule http/openapi-metadata.ts
|
|
57
|
+
*/
|
|
58
|
+
export declare const OpenApiReadPostconditionSchema: z.ZodObject<{
|
|
59
|
+
readPointer: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
60
|
+
equals: z.ZodBoolean;
|
|
61
|
+
omittedIn: z.ZodLiteral<"public">;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
export type OpenApiReadPostcondition = z.infer<typeof OpenApiReadPostconditionSchema>;
|
|
51
64
|
//# sourceMappingURL=openapi-metadata.d.ts.map
|
|
@@ -52,4 +52,16 @@ export const OpenApiWriteReadbackSchema = z.strictObject({
|
|
|
52
52
|
})
|
|
53
53
|
.optional(),
|
|
54
54
|
});
|
|
55
|
+
/**
|
|
56
|
+
* @usedByEndpoint none:external-root
|
|
57
|
+
* @shared primitive:multi OpenAPI read postcondition metadata; not direct because consumers interpret source-owned extension values rather than endpoint payloads
|
|
58
|
+
* @contractShape http.openapi-read-postcondition
|
|
59
|
+
* @contractRole canonical
|
|
60
|
+
* @ownerModule http/openapi-metadata.ts
|
|
61
|
+
*/
|
|
62
|
+
export const OpenApiReadPostconditionSchema = z.strictObject({
|
|
63
|
+
readPointer: OpenApiJsonPointerSchema,
|
|
64
|
+
equals: z.boolean(),
|
|
65
|
+
omittedIn: z.literal("public"),
|
|
66
|
+
});
|
|
55
67
|
//# sourceMappingURL=openapi-metadata.js.map
|