ResourceSchema
const ResourceSchema: ZodObject<{
accessRevoked: ZodBoolean;
api: ZodOptional<ZodObject<{
links: ZodOptional<ZodRecord<ZodString, ZodObject<{
href: ZodString;
}, $strip>>>;
redactions: ZodOptional<ZodArray<ZodObject<{
path: ZodString;
reason: ZodEnum<{
internal: ...;
secret: ...;
}>;
}, $strip>>>;
}, $strip>>;
appUserId: ZodNullable<ZodString>;
createdAt: ZodISODateTime;
email: ZodNullable<ZodString>;
entitlements: ZodOptional<ZodArray<ZodObject<{
allowances: ZodArray<ZodObject<{
limit: ZodNumber;
metric: ZodEnum<typeof UsageRuleAllowanceMetric>;
remaining: ZodNumber;
resetsAt: ZodNullable<ZodISODateTime>;
rule: ZodUUID;
scope: ZodObject<{
kind: ...;
value: ...;
}, $strip>;
used: ZodNumber;
}, $strip>>;
grant: ZodUUID;
object: ZodLiteral<"entitlement">;
period: ZodObject<{
end: ZodNullable<ZodISODateTime>;
start: ZodNullable<ZodISODateTime>;
}, $strip>;
product: ZodObject<{
billingInterval: ZodEnum<typeof BillingInterval>;
displayName: ZodNullable<ZodString>;
id: ZodUUID;
isDefault: ZodBoolean;
sku: ZodNullable<ZodString>;
}, $strip>;
rateLimits: ZodArray<ZodObject<{
limit: ZodNumber;
metric: ZodEnum<typeof UsageRuleAllowanceMetric>;
rule: ZodUUID;
scope: ZodObject<{
kind: ...;
value: ...;
}, $strip>;
window: ZodEnum<typeof RateLimitFrequency>;
}, $strip>>;
source: ZodEnum<{
appStore: "appStore";
default: "default";
manual: "manual";
stripe: "stripe";
}>;
}, $strip>>>;
id: ZodUUID;
identities: ZodArray<ZodObject<{
authenticationProvider: ZodUUID;
createdAt: ZodISODateTime;
deprovisioningPolicy: ZodNullable<ZodEnum<{
completeProductGrants: "completeProductGrants";
retainProductGrants: "retainProductGrants";
}>>;
subject: ZodString;
type: ZodEnum<{
clerk: clerk;
customServer: customServer;
firebase: firebase;
oidc: oidc;
}>;
}, $strip>>;
isSuspended: ZodBoolean;
metadata: ZodRecord<ZodString, ZodString>;
name: ZodNullable<ZodString>;
object: ZodLiteral<"customer">;
project: ZodUUID;
sandboxMode: ZodBoolean;
updatedAt: ZodISODateTime;
}, $strip>;Last updated on