Skip to main content

@idpass/data-collect-core / syncScopePolicySchema

Variable: syncScopePolicySchema

const syncScopePolicySchema: ZodObject<{ areaIds: ZodOptional<ZodNullable<ZodArray<ZodString>>>; entityTypes: ZodOptional<ZodNullable<ZodArray<ZodEnum<{ individual: "individual"; group: "group"; }>>>>; timeWindow: ZodOptional<ZodNullable<ZodUnion<readonly [ZodObject<{ type: ZodLiteral<"rolling">; days: ZodNumber; }, $strip>, ZodObject<{ type: ZodLiteral<"fixed">; floor: ZodString; }, $strip>]>>>; }, $strip>

Defined in: interfaces/scope.ts:52

Policy declared on a tenant config or on a user/role assignment. Each dimension is optional; null/missing = unbounded for that dimension.